ARM stub match tidy
Alan Modra
amodra@gmail.com
Tue Feb 5 23:19:00 GMT 2013
Another small tidy. This would have made the stub name change
unnecessary.
* elf32-arm.c (elf32_arm_final_link_relocate): Only test for
stubs in stub_bfd.
Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.304
diff -u -p -r1.304 elf32-arm.c
--- bfd/elf32-arm.c 17 Dec 2012 19:13:07 -0000 1.304
+++ bfd/elf32-arm.c 5 Feb 2013 10:18:19 -0000
@@ -8229,7 +8229,8 @@ elf32_arm_final_link_relocate (reloc_how
".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)
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list