diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-11-03 11:14:56 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-11-03 11:15:10 -0700 |
commit | 79b0c981b8f0c912208ec305d48e775bcb6d2624 (patch) | |
tree | fe791c604664a174b872fa4afcc51b8fe7bcb49d /bfd/coff-svm68k.c | |
parent | 67fa57cfa536cefb5ae7cc4635db66d03fdbd8bb (diff) | |
download | gdb-79b0c981b8f0c912208ec305d48e775bcb6d2624.zip gdb-79b0c981b8f0c912208ec305d48e775bcb6d2624.tar.gz gdb-79b0c981b8f0c912208ec305d48e775bcb6d2624.tar.bz2 |
x86: Remove func_pointer_refcount
Since check_reloc is running after gc_sections, there is no need for
reference count. If a function pointer relocation can be resolved at
run-time, there is no need for PLT and it doesn't count as non-GOT/PLT
relocation. func_pointer_refcount can be removed.
* elf32-i386.c (elf_i386_check_relocs): Set plt.refcount to 1.
Don't use func_pointer_refcount. Don't set plt.refcount nor
non_got_ref for function pointer reference.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Don't use
func_pointer_refcount.
(_bfd_x86_elf_copy_indirect_symbol): Don't copy
func_pointer_refcount.
(_bfd_x86_elf_hide_symbol): Don't use func_pointer_refcount.
* elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Likewise.
(elf_x86_link_hash_entry): Remove func_pointer_refcount.
Diffstat (limited to 'bfd/coff-svm68k.c')
0 files changed, 0 insertions, 0 deletions