summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-04-07 03:59:23 +0000
committerMichael Snyder <msnyder@vmware.com>2000-04-07 03:59:23 +0000
commit279b54a1193dd058598432bfb81bc93eb3297266 (patch)
treebbdf07877019e0e106289bcceb013e25861532f9
parent1b27397f365e10296fdabff07269802669a5e315 (diff)
downloadbinutils-gdb-279b54a1193dd058598432bfb81bc93eb3297266.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.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfcore.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d9a8ee88551..a1f2d4f096d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2000-04-06 Timothy Wall <twall@cygnus.com>
* coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
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;
}