diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-04-07 03:59:23 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-04-07 03:59:23 +0000 |
commit | 6a801f0da7d7fdd52289bd123f91aa2f2500c065 (patch) | |
tree | 42050eb259cdc23907541e27426aa8f1400a3b9f /bfd/elfcore.h | |
parent | a5560b1c25ea8cf70e0fc1cb78114ee2e753d090 (diff) | |
download | binutils-redhat-6a801f0da7d7fdd52289bd123f91aa2f2500c065.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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/elfcore.h b/bfd/elfcore.h index e4454aac9d..9f0966e951 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; } |