This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ARM stub match tidy
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 6 Feb 2013 09:48:52 +1030
- Subject: ARM stub match tidy
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