aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2023-12-11 16:08:20 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-12-25 11:46:22 +0800
commitae296cc45258b95223210263d1b91115e84beb56 (patch)
tree829f3e0c1355c410dd0d68c0fb27ee8ce918343e /include
parent3898e04b8e4be8744f876ba475b5b2a07ca61ee6 (diff)
downloadfsf-binutils-gdb-ae296cc45258b95223210263d1b91115e84beb56.zip
fsf-binutils-gdb-ae296cc45258b95223210263d1b91115e84beb56.tar.gz
fsf-binutils-gdb-ae296cc45258b95223210263d1b91115e84beb56.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/elf/loongarch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h
index 41e9fe4..6cfee16 100644
--- a/include/elf/loongarch.h
+++ b/include/elf/loongarch.h
@@ -273,6 +273,10 @@ RELOC_NUMBER (R_LARCH_TLS_DESC64_HI12, 118)
RELOC_NUMBER (R_LARCH_TLS_DESC_LD, 119)
RELOC_NUMBER (R_LARCH_TLS_DESC_CALL, 120)
+RELOC_NUMBER (R_LARCH_TLS_LD_PCREL20_S2, 124)
+RELOC_NUMBER (R_LARCH_TLS_GD_PCREL20_S2, 125)
+RELOC_NUMBER (R_LARCH_TLS_DESC_PCREL20_S2, 126)
+
END_RELOC_NUMBERS (R_LARCH_count)
/* Processor specific flags for the ELF header e_flags field. */