diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-12-11 16:08:20 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-12-25 11:46:22 +0800 |
commit | ae296cc45258b95223210263d1b91115e84beb56 (patch) | |
tree | 829f3e0c1355c410dd0d68c0fb27ee8ce918343e /include | |
parent | 3898e04b8e4be8744f876ba475b5b2a07ca61ee6 (diff) | |
download | gdb-ae296cc45258b95223210263d1b91115e84beb56.zip gdb-ae296cc45258b95223210263d1b91115e84beb56.tar.gz 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.h | 4 |
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. */ |