LoongArch: Add support for TLS LD/GD/DESC relaxation
authormengqinggang <mengqinggang@loongson.cn>
Mon, 11 Dec 2023 08:08:20 +0000 (16:08 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 25 Dec 2023 03:46:22 +0000 (11:46 +0800)
commitae296cc45258b95223210263d1b91115e84beb56
tree829f3e0c1355c410dd0d68c0fb27ee8ce918343e
parent3898e04b8e4be8744f876ba475b5b2a07ca61ee6
LoongArch: Add support for TLS LD/GD/DESC relaxation

The pcalau12i + addi.d of TLS LD/GD/DESC relax to pcaddi.
Relaxation is only performed when the TLS model transition is not possible.
13 files changed:
bfd/bfd-in2.h
bfd/elfnn-loongarch.c
bfd/elfxx-loongarch.c
bfd/libbfd.h
bfd/reloc.c
gas/config/tc-loongarch.c
gas/testsuite/gas/loongarch/macro_op.d
gas/testsuite/gas/loongarch/macro_op_32.d
gas/testsuite/gas/loongarch/macro_op_large_abs.d
gas/testsuite/gas/loongarch/macro_op_large_pc.d
include/elf/loongarch.h
ld/testsuite/ld-loongarch-elf/macro_op.d
ld/testsuite/ld-loongarch-elf/macro_op_32.d