aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-12-23 11:46:17 +0000
committerNick Clifton <nickc@redhat.com>2008-12-23 11:46:17 +0000
commitaf1f44191e32c18ab5004a140e774e2d17dfce3a (patch)
treeeaad081f2aff1f752789a473bf7da9ced7973d44 /bfd
parentd6e0b1603bd96aaa1fbc1ad0b899601454657cb3 (diff)
downloadfsf-binutils-gdb-af1f44191e32c18ab5004a140e774e2d17dfce3a.zip
fsf-binutils-gdb-af1f44191e32c18ab5004a140e774e2d17dfce3a.tar.gz
fsf-binutils-gdb-af1f44191e32c18ab5004a140e774e2d17dfce3a.tar.bz2
PR 7093
* elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF object files.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-arm.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6c0fa83..13d495d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-23 Nick Clifton <nickc@redhat.com>
+
+ PR 7093
+ * elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF
+ object files.
+
2008-12-23 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_make_bfd_section): Use the standard ELF name
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 24fa76a..8b65dfc 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -4608,6 +4608,10 @@ bfd_elf32_arm_init_maps (bfd *abfd)
Elf_Internal_Shdr *hdr;
unsigned int i, localsyms;
+ /* PR 7093: Make sure that we are dealing with an arm elf binary. */
+ if (! is_arm_elf (abfd))
+ return;
+
if ((abfd->flags & DYNAMIC) != 0)
return;