aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-02-05 23:18:44 +0000
committerAlan Modra <amodra@gmail.com>2013-02-05 23:18:44 +0000
commitca6b5f82a58ba283a2d5e58eeba5659d246f8a79 (patch)
treee5f5d4223307b11ce3b64db6c89ee0bdc01c26d6 /bfd
parent94d4433aa6a50ca4258164e33f6f46fdf4637346 (diff)
downloadgdb-ca6b5f82a58ba283a2d5e58eeba5659d246f8a79.zip
gdb-ca6b5f82a58ba283a2d5e58eeba5659d246f8a79.tar.gz
gdb-ca6b5f82a58ba283a2d5e58eeba5659d246f8a79.tar.bz2
* elf32-arm.c (elf32_arm_final_link_relocate): Only test for
stubs in stub_bfd.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-arm.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4bb1cfa..4b66949 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2013-02-06 Alan Modra <amodra@gmail.com>
+ * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
+ stubs in stub_bfd.
+
+2013-02-06 Alan Modra <amodra@gmail.com>
+
* Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
* Makefile.in: Regenerate.
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index e2f8a96..6197f95 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -8229,7 +8229,8 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
".tls_vars") == 0)
&& ((r_type != R_ARM_REL32 && r_type != R_ARM_REL32_NOI)
|| !SYMBOL_CALLS_LOCAL (info, h))
- && (!strstr (input_section->name, STUB_SUFFIX))
+ && !(input_bfd == globals->stub_bfd
+ && strstr (input_section->name, STUB_SUFFIX))
&& (h == NULL
|| ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
|| h->root.type != bfd_link_hash_undefweak)