bfd/
authorRoland McGrath <roland@gnu.org>
Mon, 17 Dec 2012 19:13:07 +0000 (19:13 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 17 Dec 2012 19:13:07 +0000 (19:13 +0000)
* elf32-arm.c (elf32_arm_size_stubs): Skip input BFDs that are
not ARM ELF.

bfd/ChangeLog
bfd/elf32-arm.c

index fb5177dd8b6c413553d9d8f0def9ac8db43544b2..098001e1a8050f860749558123833128606ba439 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-17  Roland McGrath  <mcgrathr@google.com>
+           Alan Modra  <amodra@gmail.com>
+
+       * elf32-arm.c (elf32_arm_size_stubs): Skip input BFDs that are
+       not ARM ELF.
+
 2012-12-17  Nick Clifton  <nickc@redhat.com>
 
        * MAINTAINERS: Add copyright notice.
index fd7d26a71ba514dff743b6c90d8053f488fbfea9..e2f8a9607ae65420f56c943a91b99977b18544f0 100644 (file)
@@ -4987,6 +4987,9 @@ elf32_arm_size_stubs (bfd *output_bfd,
          asection *section;
          Elf_Internal_Sym *local_syms = NULL;
 
+          if (!is_arm_elf (input_bfd))
+            continue;
+
          num_a8_relocs = 0;
 
          /* We'll need the symbol table in a second.  */