LoongArch: ld: Add support for tls le relax.
authorchangjiachen <changjiachen@stu.xupt.edu.cn>
Thu, 28 Dec 2023 12:01:15 +0000 (20:01 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 29 Dec 2023 07:11:01 +0000 (15:11 +0800)
commit90827b4eefb06f6e0ab6cbac9eb94922e2cc8aee
tree62749966c215794e77ade37eeba634c6479380aa
parent40372b03b36de07f1c5f5dc519eb000238736128
LoongArch: ld: Add support for tls le relax.

Add tls le relax related testsuites in ld.

The new test cases are mainly tested in three aspects:

1. tls le relax function correctness test.
2. tls le relax boundary check test.
3. tls le relax function compatibility test.

ld/testsuite/ChangeLog:

* ld/testsuite/ld-loongarch-elf/relax.exp: Modify test.
* ld/testsuite/ld-loongarch-elf/old-tls-le.s: New test.
* ld/testsuite/ld-loongarch-elf/relax-bound-check-tls-le.s: Likewise.
* ld/testsuite/ld-loongarch-elf/tls-relax-compatible-check-new.s: Likewise.
* ld/testsuite/ld-loongarch-elf/relax-tls-le.s: Likewise.
* ld/testsuite/ld-loongarch-elf/tls-relax-compatible-check-old.s: Likewise.
ld/testsuite/ld-loongarch-elf/old-tls-le.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-bound-check-tls-le.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-tls-le.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax.exp
ld/testsuite/ld-loongarch-elf/tls-relax-compatible-check-new.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/tls-relax-compatible-check-old.s [new file with mode: 0644]