binutils: backport ld patch to fix ARM specific issues with --gc-sections

SVN-Revision: 33461
This commit is contained in:
Felix Fietkau 2012-09-19 06:33:07 +00:00
parent 79ffd1032a
commit e566454513
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -12408,7 +12408,8 @@ elf32_arm_check_relocs (bfd *abfd, struc
/* If the symbol is a function that doesn't bind locally,
this relocation will need a PLT entry. */
- root_plt->refcount += 1;
+ if (root_plt->refcount != -1)
+ root_plt->refcount += 1;
if (!call_reloc_p)
arm_plt->noncall_refcount++;