From: Alan Modra Date: Tue, 5 Feb 2013 23:18:44 +0000 (+0000) Subject: * elf32-arm.c (elf32_arm_final_link_relocate): Only test for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca6b5f82a58ba283a2d5e58eeba5659d246f8a79;p=binutils-gdb.git * elf32-arm.c (elf32_arm_final_link_relocate): Only test for stubs in stub_bfd. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4bb1cfa49ed..4b66949bcf4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-02-06 Alan Modra + + * elf32-arm.c (elf32_arm_final_link_relocate): Only test for + stubs in stub_bfd. + 2013-02-06 Alan Modra * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'. diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index e2f8a9607ae..6197f95041a 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)