diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-10 15:52:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-10 15:52:39 -0700 |
commit | 0f09b4d8d8f7c5d249c8375c5c42d4eba3bdc858 (patch) | |
tree | 9bca357bd0597b03ae9aef012325061e696dba8c /bfd/ChangeLog | |
parent | 2f20e312aad64c0f5257b9725fa5ffa3e8a93ca2 (diff) | |
download | gdb-0f09b4d8d8f7c5d249c8375c5c42d4eba3bdc858.zip gdb-0f09b4d8d8f7c5d249c8375c5c42d4eba3bdc858.tar.gz gdb-0f09b4d8d8f7c5d249c8375c5c42d4eba3bdc858.tar.bz2 |
x86: Set GOT refcount to 1
Since x86 check_relocs is called after opening all inputs and garbage
collection, they never see the removed sections. There is no need
for incrementing GOT refcount. But since PLT refcount is also used in
/* Don't create the PLT entry if there are only function pointer
relocations which can be resolved at run-time. */
else if (htab->elf.dynamic_sections_created
&& (h->plt.refcount > eh->func_pointer_refcount
|| eh->plt_got.refcount > 0))
{
we must increment it.
* elf32-i386.c (elf_i386_check_relocs): Set GOT refcount to 1
instead of incrementing it.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bf400a9..52ff647 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2017-10-10 H.J. Lu <hongjiu.lu@intel.com> + + * elf32-i386.c (elf_i386_check_relocs): Set GOT refcount to 1 + instead of incrementing it. + * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. + 2017-10-10 Renlin Li <renlin.li@arm.com> PR ld/21402 |