summaryrefslogtreecommitdiff
path: root/bfd/elfcore.h
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-04-07 03:59:23 +0000
committerMichael Snyder <msnyder@specifix.com>2000-04-07 03:59:23 +0000
commitbb4de8abfa5607632a3e21dbba35ccc3aec5c944 (patch)
tree2ffe878fc60fd54ea4d941b3e4ebc0d18b712924 /bfd/elfcore.h
parent5ce62f1d1eb4f48a35e8e782d55e5691cd5b3f9a (diff)
downloadgdb-bb4de8abfa5607632a3e21dbba35ccc3aec5c944.tar.gz
2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
* elfcore.h (elf_core_file_p): call backend_object_p which thereby gets an opportunity to update the arch/machine type.
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;
}