mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-25 15:31:05 +00:00
e395366aea
See http://sourceware.org/bugzilla/show_bug.cgi?id=14189 for more information. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
13 lines
377 B
Diff
13 lines
377 B
Diff
--- 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++;
|