From: Ulrich Drepper Date: Sat, 21 Jun 1997 02:08:10 +0000 (+0000) Subject: (elf_machine_rela): Check that the symbol was found. X-Git-Tag: glibc-2.16-ports-before-merge~3545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c96df8ef30ac69e857503a2c503dfe6fd3de788b;p=thirdparty%2Fglibc.git (elf_machine_rela): Check that the symbol was found. --- diff --git a/sysdeps/m68k/dl-machine.h b/sysdeps/m68k/dl-machine.h index 1523ddb1c65..e50f7736142 100644 --- a/sysdeps/m68k/dl-machine.h +++ b/sysdeps/m68k/dl-machine.h @@ -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)) {