(elf_machine_rela): Check that the symbol was found.
authorUlrich Drepper <drepper@redhat.com>
Sat, 21 Jun 1997 02:08:10 +0000 (02:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 21 Jun 1997 02:08:10 +0000 (02:08 +0000)
sysdeps/m68k/dl-machine.h

index 1523ddb..e50f773 100644 (file)
@@ -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))
            {