mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
PR ld/14189
* elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount for locally bound symbols.
This commit is contained in:
parent
99aad25459
commit
a8c887ddc5
@ -1,3 +1,9 @@
|
||||
2012-06-29 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR ld/14189
|
||||
* elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
|
||||
for locally bound symbols.
|
||||
|
||||
2012-06-29 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* section.c (bfd_get_linker_section): New function.
|
||||
|
@ -12669,7 +12669,8 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
|
||||
|
||||
/* 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++;
|
||||
|
Loading…
Reference in New Issue
Block a user