diff options
author | changjiachen <changjiachen@stu.xupt.edu.cn> | 2023-12-28 19:57:30 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-12-29 15:11:00 +0800 |
commit | 775dead218e12e3fb94481c7a99aa0238d6a9138 (patch) | |
tree | a3f124ea2c0ed909dfd82a9d614e28fb38688bee | |
parent | aae8784c58d693fa8bc0161b325fc8bcd76d18fc (diff) | |
download | gdb-775dead218e12e3fb94481c7a99aa0238d6a9138.zip gdb-775dead218e12e3fb94481c7a99aa0238d6a9138.tar.gz gdb-775dead218e12e3fb94481c7a99aa0238d6a9138.tar.bz2 |
LoongArch: include: Add support for tls le relax.
Add new relocs number for tls le relax.
include/ChangeLog:
* elf/loongarch.h:
(RELOC_NUMBER (R_LARCH_TLS_LE_HI20_R, 121)): New relocs number.
(RELOC_NUMBER (R_LARCH_TLS_LE_ADD_R, 122)): Likewise.
(RELOC_NUMBER (R_LARCH_TLS_LE_LO12_R, 123)): Likewise.
-rw-r--r-- | include/elf/loongarch.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h index 6cfee16..1deb6ba 100644 --- a/include/elf/loongarch.h +++ b/include/elf/loongarch.h @@ -273,6 +273,18 @@ RELOC_NUMBER (R_LARCH_TLS_DESC64_HI12, 118) RELOC_NUMBER (R_LARCH_TLS_DESC_LD, 119) RELOC_NUMBER (R_LARCH_TLS_DESC_CALL, 120) +/* TLS-LE-LUI + lu12i.w rd,%le_hi20_r (sym). */ +RELOC_NUMBER (R_LARCH_TLS_LE_HI20_R, 121) + +/* TLS-LE-ADD + add.d rd,rj,rk,%le_add_r (sym). */ +RELOC_NUMBER (R_LARCH_TLS_LE_ADD_R, 122) + +/* TLS-LE-ST + st.w/addi.w/ld.w rd,rj,%le_lo12_r (sym). */ +RELOC_NUMBER (R_LARCH_TLS_LE_LO12_R, 123) + 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) |