]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[bfd] Revise import stubs on hppa.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 20 Oct 2019 16:20:01 +0000 (12:20 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 20 Oct 2019 16:20:01 +0000 (12:20 -0400)
commit921703f7e05838e76ddb3ec65f396ee8484b5398
tree0792d3cdf75a9324195e8ce2008e5c8987bd3aa8
parent99ba661ea6f86c1979f01029af51bd6f8eb8cdf4
[bfd] Revise import stubs on hppa.

This commit updates the import stubs to leave the pointer to the
function descriptor in register %r22.  This provides a backup
mechanism for _dl_runtime_resolve to fixup descriptors during
lazy binding.

bfd/ChangeLog
2019-10-20  John David Anglin  <danglin@gcc.gnu.org>

* elf32-hppa.c: Revise import stub sequences.
(LONG_BRANCH_STUB_SIZE): Define.
(LONG_BRANCH_SHARED_STUB_SIZE): Define.
(IMPORT_STUB_SIZE): Define.
(IMPORT_SHARED_STUB_SIZE): Define.
(EXPORT_STUB_SIZE): Define.
(plt_stub): Revise to not use register %r22.
(LDO_R1_R22): Define.
(LDW_R22_R21): Define.
(LDW_R22_R19): Define.
(hppa_build_one_stub): Update stub generation and use new defines.
(hppa_size_one_stub): Likewise.
bfd/ChangeLog
bfd/elf32-hppa.c