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 /bfd/reloc.c | |
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 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index f7fe0c7..6fd0f1f 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -8324,6 +8324,13 @@ ENUMX ENUMX BFD_RELOC_LARCH_TLS_DESC_CALL +ENUMX + BFD_RELOC_LARCH_TLS_LD_PCREL20_S2 +ENUMX + BFD_RELOC_LARCH_TLS_GD_PCREL20_S2 +ENUMX + BFD_RELOC_LARCH_TLS_DESC_PCREL20_S2 + ENUMDOC LARCH relocations. |