OSDN Git Service

* elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
authorStephen Clarke <stephen.clarke@earthling.net>
Wed, 2 Oct 2002 21:53:40 +0000 (21:53 +0000)
committerStephen Clarke <stephen.clarke@earthling.net>
Wed, 2 Oct 2002 21:53:40 +0000 (21:53 +0000)
commitfa34ac05408923364bbe81ae64486f6fbdfa0b4e
treefd2901ef676bfbd5727f753ad4a13a57ccfa1c68
parent0cfd3e04f5d5e5823b2c7948bde42cc3b6ffce4c
* elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
(sh_elf_link_hash_newfunc): Initialize it.
(allocate_dynrelocs): Transfer gotplt refs from plt.refcount
to got.refcount for symbols that are forced local or when
we have direct got refs.
(sh_elf_gc_sweep_hook): Adjust gotplt_refcount.  Use it
to correctly adjust got.refcount and plt.refcount.
(sh_elf_copy_indirect_symbol): Copy gotplt_refcount across.
(sh_elf_check_relocs): Increment gotplt_refcount.
bfd/ChangeLog
bfd/elf32-sh.c