summaryrefslogtreecommitdiff
path: root/bfd/elfcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfcore.h')
-rw-r--r--bfd/elfcore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/elfcore.h b/bfd/elfcore.h
index e4454aac9d0..9f0966e9519 100644
--- a/bfd/elfcore.h
+++ b/bfd/elfcore.h
@@ -222,5 +222,13 @@ elf_core_file_p (abfd)
/* Save the entry point from the ELF header. */
bfd_get_start_address (abfd) = i_ehdrp->e_entry;
+ /* Let the backend double check the format and override global
+ information. */
+ if (ebd->elf_backend_object_p)
+ {
+ if ((*ebd->elf_backend_object_p) (abfd) == false)
+ goto wrong;
+ }
+
return abfd->xvec;
}