aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
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 /bfd/libbfd.h
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 'bfd/libbfd.h')
-rw-r--r--bfd/libbfd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 71b03da..8dab441 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -3612,6 +3612,9 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_LARCH_TLS_DESC64_HI12",
"BFD_RELOC_LARCH_TLS_DESC_LD",
"BFD_RELOC_LARCH_TLS_DESC_CALL",
+ "BFD_RELOC_LARCH_TLS_LD_PCREL20_S2",
+ "BFD_RELOC_LARCH_TLS_GD_PCREL20_S2",
+ "BFD_RELOC_LARCH_TLS_DESC_PCREL20_S2",
"@@overflow: BFD_RELOC_UNUSED@@",
};
#endif