From: Nick Clifton Date: Tue, 23 Dec 2008 11:46:17 +0000 (+0000) Subject: PR 7093 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af1f44191e32c18ab5004a140e774e2d17dfce3a;p=binutils-gdb.git PR 7093 * elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF object files. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6c0fa83d212..13d495dce21 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2008-12-23 Nick Clifton + + PR 7093 + * elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF + object files. + 2008-12-23 Tristan Gingold * 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 24fa76a4361..8b65dfc0456 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;