LoongArch: ld: Add support for linker relaxation.
authormengqinggang <mengqinggang@loongson.cn>
Thu, 1 Dec 2022 09:17:09 +0000 (17:17 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Tue, 30 May 2023 11:56:48 +0000 (19:56 +0800)
commit2bd766d6245bf9db77c42da3537c949ffb814bfc
tree032b6f2c21936d0e05f4cefcdc4565869ab8cf94
parent56576f4a722b7398d35802ecf7d4185c27d6d69b
LoongArch: ld: Add support for linker relaxation.

Add ld relax support and testsuits.

ld/ChangeLog:

* emultempl/loongarchelf.em: Regenerated.
* testsuite/ld-elf/compressed1d.d: Xfail loongarch*-*.
* testsuite/ld-elf/pr26936.d: Likewise.
* testsuite/ld-loongarch-elf/disas-jirl.d: Regenerated.
* testsuite/ld-loongarch-elf/disas-jirl-32.d: Regenerated.
* testsuite/ld-loongarch-elf/jmp_op.d: Likewise.
* testsuite/ld-loongarch-elf/macro_op.d: Likewise.
* testsuite/ld-loongarch-elf/macro_op_32.d: Likewise.
* testsuite/ld-loongarch-elf/relax-align.dd: New test.
* testsuite/ld-loongarch-elf/relax-align.s: New test.
* testsuite/ld-loongarch-elf/relax.exp: New test.
* testsuite/ld-loongarch-elf/relax.s: New test.
* testsuite/ld-loongarch-elf/uleb128.dd: New test.
* testsuite/ld-loongarch-elf/uleb128.s: New test.
14 files changed:
ld/emultempl/loongarchelf.em
ld/testsuite/ld-elf/compressed1d.d
ld/testsuite/ld-elf/pr26936.d
ld/testsuite/ld-loongarch-elf/disas-jirl-32.d
ld/testsuite/ld-loongarch-elf/disas-jirl.d
ld/testsuite/ld-loongarch-elf/jmp_op.d
ld/testsuite/ld-loongarch-elf/macro_op.d
ld/testsuite/ld-loongarch-elf/macro_op_32.d
ld/testsuite/ld-loongarch-elf/relax-align.dd [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-align.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax.exp [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/uleb128.dd [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/uleb128.s [new file with mode: 0644]