]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elfnn-riscv.c
RISC-V: Pc-rel to gp-rel relaxation function cleanup.
authorJim Wilson <jimw@sifive.com>
Fri, 28 Sep 2018 00:16:34 +0000 (17:16 -0700)
committerJim Wilson <jimw@sifive.com>
Fri, 28 Sep 2018 00:16:34 +0000 (17:16 -0700)
commit5f9aecea0dfd9e8b0a728c332e8ddb105bae6054
treeaf455197cdf5ab561cc8cc673c0210c23ad6802f
parentfec3f4ea46c3f27206df97f379da3b70d4306cf2
RISC-V: Pc-rel to gp-rel relaxation function cleanup.

bfd/
* elfnn-riscv.c (riscv_init_pcgp_relocs): Add explanatory comment.
(riscv_free_pcgp_relocs, riscv_record_pcgp_reloc): Likewise.
(riscv_find_pcgp_hi_reloc, riscv_reocrd_pcgp_lo_reloc): Likewise.
(riscv_find_pcgp_lo_reloc): Likewise.
(riscv_delete_pcgp_hi_reloc, riscv_use_pcgp_hi_reloc): Delete.
(riscv_delete_pcgp_lo_reloc): Likewise.
(_bfd_riscv_relax_pc): Don't call riscv_use_pcgp_hi_reloc. Replace
calls to riscv_delete_pcgp_lo_reloc and riscv_delete_pcgp_hi_reloc
with TRUE.  Mark abfd arg as ATTRIBUTE_UNUSED.
bfd/ChangeLog
bfd/elfnn-riscv.c