elf64-hppa: Replace plt_sec/plt_rel_sec with root.splt/root.srelplt
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jun 2020 15:06:22 +0000 (08:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 7 Jun 2020 15:06:22 +0000 (08:06 -0700)
commit9b8a8575b43157a55a815814e15349ddb0865165
treeaa007006d80d982db2a577d5de22acfc617b7a70
parent82836c928ffc6aaa9e594ba69af5f446bdc95bf4
elf64-hppa: Replace plt_sec/plt_rel_sec with root.splt/root.srelplt

elf64-hppa should use root.splt and root.srelplt instead of plt_sec and
plt_rel_sec so that elflink.c can see splt and srelplt.  This fixed:

FAIL: ld-elf/pr19539

* elf64-hppa.c (elf64_hppa_link_hash_table): Remove plt_sec and
plt_rel_sec.
(elf64_hppa_check_relocs): Replace plt_sec/plt_rel_sec with
root.splt/root.srelplt.
(elf64_hppa_create_dynamic_sections): Likewise.
(elf64_hppa_size_dynamic_sections): Likewise.
(elf64_hppa_finish_dynamic_symbol): Likewise.
(elf_hppa_final_link): Likewise.
(elf_hppa_final_link_relocate): Likewise.
bfd/ChangeLog
bfd/elf64-hppa.c