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/libbfd.h | |
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/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 3 |
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 |