Check corrupt VTENTRY entry in bfd_elf_gc_record_vtentry
[deliverable/binutils-gdb.git] / bfd / elf64-x86-64.c
index 6790228271b38c9ed5e44a59d715171f0f456f8a..27e23a0793e1d9261e6986c1bd4267f63d6f464e 100644 (file)
@@ -2373,9 +2373,7 @@ do_size:
          /* This relocation describes which C++ vtable entries are actually
             used.  Record for later use during GC.  */
        case R_X86_64_GNU_VTENTRY:
-         BFD_ASSERT (h != NULL);
-         if (h != NULL
-             && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
+         if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
            goto error_return;
          break;
 
This page took 0.038586 seconds and 4 git commands to generate.