PR23980, assertion fail
[deliverable/binutils-gdb.git] / bfd / elf64-x86-64.c
index 4dcab4347882d97b12c046528896ec572839256c..8e886b00c4853978892cc26354002b022afa8097 100644 (file)
@@ -2389,7 +2389,11 @@ elf_x86_64_relocate_section (bfd *output_bfd,
   if (htab == NULL)
     return FALSE;
 
-  BFD_ASSERT (is_x86_elf (input_bfd, htab));
+  if (!is_x86_elf (input_bfd, htab))
+    {
+      bfd_set_error (bfd_error_wrong_format);
+      return FALSE;
+    }
 
   plt_entry_size = htab->plt.plt_entry_size;
   symtab_hdr = &elf_symtab_hdr (input_bfd);
This page took 0.024462 seconds and 4 git commands to generate.