]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf64-ppc.c
Check corrupt VTENTRY entry in bfd_elf_gc_record_vtentry
[thirdparty/binutils-gdb.git] / bfd / elf64-ppc.c
index 5be3fe00f18dc75a0c7e3bcf9967a8f909567bd9..a795ad1578d237be13584c3ca0530c6b0524e2b7 100644 (file)
@@ -4555,9 +4555,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
          /* This relocation describes which C++ vtable entries are actually
             used.  Record for later use during GC.  */
        case R_PPC64_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;