PR 7093
authorNick Clifton <nickc@redhat.com>
Tue, 23 Dec 2008 11:46:17 +0000 (11:46 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 23 Dec 2008 11:46:17 +0000 (11:46 +0000)
        * elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF
        object files.

bfd/ChangeLog
bfd/elf32-arm.c

index 6c0fa83d212bc5df7dda22567f40b09ce5b1f126..13d495dce21fbf8c36fca64f170a421f422d9c66 100644 (file)
@@ -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
index 24fa76a43611fbe8ad8aece22937643cf2cb56e9..8b65dfc0456be32c664a0cf544135bf587d00936 100644 (file)
@@ -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;