diff options
Diffstat (limited to 'sysdeps/powerpc/dl-machine.h')
-rw-r--r-- | sysdeps/powerpc/dl-machine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/powerpc/dl-machine.h b/sysdeps/powerpc/dl-machine.h index 17e8d9a..6ddbea5 100644 --- a/sysdeps/powerpc/dl-machine.h +++ b/sysdeps/powerpc/dl-machine.h @@ -591,6 +591,10 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc, } else if (rinfo == R_PPC_COPY) { + if (sym == NULL) + /* This can happen in trace mode when an object could not be + found. */ + return; if (sym->st_size > refsym->st_size || (_dl_verbose && sym->st_size < refsym->st_size)) { |