summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2012-12-17 19:13:05 +0000
committerRoland McGrath <roland@gnu.org>2012-12-17 19:13:05 +0000
commitfc21a7902c7ee68c8f437e8891fab1be41ae30ea (patch)
treed4d307d6f2c8ad5adefcd07626fabc10c96e01d1 /bfd
parenta8725dbf70fdc79036c012ef180d3e5f4d62069f (diff)
downloadgdb-fc21a7902c7ee68c8f437e8891fab1be41ae30ea.tar.gz
bfd/
* elf32-arm.c (elf32_arm_size_stubs): Skip input BFDs that are not ARM ELF.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-arm.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fb5177dd8b6..098001e1a80 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index fd7d26a71ba..e2f8a9607ae 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -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. */