X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=toolchain%2Fbinutils%2Fpatches%2F2.22%2F400-fix_arm_gc_sections.patch;fp=toolchain%2Fbinutils%2Fpatches%2F2.22%2F400-fix_arm_gc_sections.patch;h=04badab620b53abe9e52ea69f7e63a2798e5c66f;hb=818a96948f5288daa904539aab5c226855409eae;hp=0000000000000000000000000000000000000000;hpb=b59ad4a498aca6cf3ccbfe0f8fea71c99ea04a22;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch b/toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch new file mode 100644 index 0000000000..04badab620 --- /dev/null +++ b/toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch @@ -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++;