]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-vax.c
Check corrupt VTENTRY entry in bfd_elf_gc_record_vtentry
[thirdparty/binutils-gdb.git] / bfd / elf32-vax.c
index 10c01a9b9ed8d3b0e9093dda8581cb21b68fc397..2af7050707925ed49b4373cd15133afc62f82780 100644 (file)
@@ -783,9 +783,7 @@ elf_vax_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
          /* This relocation describes which C++ vtable entries are actually
             used.  Record for later use during GC.  */
        case R_VAX_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))
            return FALSE;
          break;