]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elfnn-riscv.c
RISC-V: Enable lui relaxation for CODE and MERGE sections.
authorJim Wilson <jimw@sifive.com>
Mon, 24 Jun 2019 20:50:10 +0000 (13:50 -0700)
committerJim Wilson <jimw@sifive.com>
Mon, 24 Jun 2019 20:50:10 +0000 (13:50 -0700)
commit04b865dc2ede2b8ca8c60f0487a179eb97895fee
tree90ea8e2ea5857832e6b39f1bbc65a6bba0a07664
parentf93ab3a0b8039a1667a666f013cca50b03d67f9b
RISC-V: Enable lui relaxation for CODE and MERGE sections.

2019-06-24  Ilia Diachkov  <ilia.diachkov@optimitech.com>
bfd/
* elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
SEC_MERGE or SEC_CODE flags are set.
(_bfd_riscv_relax_section): New local symtype.  Set sym_sec and
symtype consistently.  Don't include sec_addr (sym_sec) in symval.
Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
Add sec_addr (sym_sec) after handling merge sections.
bfd/ChangeLog
bfd/elfnn-riscv.c