* 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)
commit4989d792c87e7f545ad83e6f24dc2396db4c31e9
tree55537af5414d78696b760f1bb97edfa8712eb87f
parent10abb1d48f43709403aa230f669c2c17ffadff04
* 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