# HG changeset patch # User Florian Fainelli # Date 1348044050 -7200 # Node ID a7e9fb84c7a0532d07888474f749abaa3cfeb4f8 # Parent 4b4b765305dae1dc71055e8f9719045f993bb3e6 binutils/binutils: backport upstream fix for binutils 2.22 ld bug 14189 See http://sourceware.org/bugzilla/show_bug.cgi?id=14189 for more information. Signed-off-by: Florian Fainelli diff -r 4b4b765305da -r a7e9fb84c7a0 patches/binutils/2.22/400-fix_arm_gc_sections.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/binutils/2.22/400-fix_arm_gc_sections.patch Wed Sep 19 10:40:50 2012 +0200 @@ -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++;