summaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
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
commit9ef5474b802a6bf1230e1cfcf2bd05eb84a52c83 (patch)
treeebf9e74749f08bc8e1a89c384fbd033474c773df /bfd/elf32-arm.c
parent2b6769105f18d5deb325413a6203813b10cbc280 (diff)
downloadbinutils-redhat-9ef5474b802a6bf1230e1cfcf2bd05eb84a52c83.tar.gz
bfd/
* elf32-arm.c (elf32_arm_size_stubs): Skip input BFDs that are not ARM ELF.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index fd7d26a71b..e2f8a9607a 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. */