]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - binutils/patches/binutils-2.22.52.0.4-refcount.patch0
binutils: Fix assert error in ld.
[people/ms/ipfire-3.x.git] / binutils / patches / binutils-2.22.52.0.4-refcount.patch0
CommitLineData
0f549683
MT
1http://sourceware.org/bugzilla/show_bug.cgi?id=14189
2
3Index: bfd/elf32-arm.c
4===================================================================
5RCS file: /cvs/src/src/bfd/elf32-arm.c,v
6retrieving revision 1.294
7diff -u -3 -p -r1.294 elf32-arm.c
8--- bfd/elf32-arm.c 28 Jun 2012 16:57:24 -0000 1.294
9+++ bfd/elf32-arm.c 29 Jun 2012 13:21:52 -0000
10@@ -12668,7 +12668,8 @@ elf32_arm_check_relocs (bfd *abfd, struc
11
12 /* If the symbol is a function that doesn't bind locally,
13 this relocation will need a PLT entry. */
14- root_plt->refcount += 1;
15+ if (root_plt->refcount != -1)
16+ root_plt->refcount += 1;
17
18 if (!call_reloc_p)
19 arm_plt->noncall_refcount++;