bfd/
[deliverable/binutils-gdb.git] / bfd / elf32-mcore.c
index 2eef4b4c45bbc8bfb109d17a1f96e7daacf9e0d7..32ef86a870221b4fa2e01f4c9aa7f2d788a6e027 100644 (file)
@@ -638,7 +638,9 @@ mcore_elf_check_relocs (bfd * abfd,
         /* This relocation describes which C++ vtable entries are actually
            used.  Record for later use during GC.  */
         case R_MCORE_GNU_VTENTRY:
-          if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
+          BFD_ASSERT (h != NULL);
+          if (h != NULL
+              && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
             return FALSE;
           break;
         }
This page took 0.024386 seconds and 4 git commands to generate.