mirror of git://sourceware.org/git/glibc.git
(elf_machine_rela): Check that the symbol was found.
This commit is contained in:
parent
6af245e27b
commit
c96df8ef30
|
|
@ -227,6 +227,10 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
|
|||
switch (ELF32_R_TYPE (reloc->r_info))
|
||||
{
|
||||
case R_68K_COPY:
|
||||
if (sym == NULL)
|
||||
/* This can happen in trace mode if an object could not be
|
||||
found. */
|
||||
break;
|
||||
if (sym->st_size > refsym->st_size
|
||||
|| (_dl_verbose && sym->st_size < refsym->st_size))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue