X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=binutils%2Fpatches%2Fbinutils-2.22.52.0.4-refcount.patch0;fp=binutils%2Fpatches%2Fbinutils-2.22.52.0.4-refcount.patch0;h=33fcfd4d00fe71be1a120a3cd43bd67593764dff;hb=0f54968346962ab9b1fed900db53a6c896f13176;hp=0000000000000000000000000000000000000000;hpb=2d6fd519f945bcd2a10b8ffd5f00dee4385dc137;p=people%2Fms%2Fipfire-3.x.git diff --git a/binutils/patches/binutils-2.22.52.0.4-refcount.patch0 b/binutils/patches/binutils-2.22.52.0.4-refcount.patch0 new file mode 100644 index 000000000..33fcfd4d0 --- /dev/null +++ b/binutils/patches/binutils-2.22.52.0.4-refcount.patch0 @@ -0,0 +1,19 @@ +http://sourceware.org/bugzilla/show_bug.cgi?id=14189 + +Index: bfd/elf32-arm.c +=================================================================== +RCS file: /cvs/src/src/bfd/elf32-arm.c,v +retrieving revision 1.294 +diff -u -3 -p -r1.294 elf32-arm.c +--- bfd/elf32-arm.c 28 Jun 2012 16:57:24 -0000 1.294 ++++ bfd/elf32-arm.c 29 Jun 2012 13:21:52 -0000 +@@ -12668,7 +12668,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++;