1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.22/400-fix_arm_gc_sections.patch Fri Sep 21 16:26:10 2012 +0200
1.3 @@ -0,0 +1,12 @@
1.4 +--- a/bfd/elf32-arm.c
1.5 ++++ b/bfd/elf32-arm.c
1.6 +@@ -12408,7 +12408,8 @@ elf32_arm_check_relocs (bfd *abfd, struc
1.7 +
1.8 + /* If the symbol is a function that doesn't bind locally,
1.9 + this relocation will need a PLT entry. */
1.10 +- root_plt->refcount += 1;
1.11 ++ if (root_plt->refcount != -1)
1.12 ++ root_plt->refcount += 1;
1.13 +
1.14 + if (!call_reloc_p)
1.15 + arm_plt->noncall_refcount++;