public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] LoongArch: include: Add support for tls le relax.
@ 2023-12-29  7:13 liu & zhensong
  0 siblings, 0 replies; only message in thread
From: liu & zhensong @ 2023-12-29  7:13 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=775dead218e12e3fb94481c7a99aa0238d6a9138

commit 775dead218e12e3fb94481c7a99aa0238d6a9138
Author: changjiachen <changjiachen@stu.xupt.edu.cn>
Date:   Thu Dec 28 19:57:30 2023 +0800

    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.

Diff:
---
 include/elf/loongarch.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h
index 6cfee164312..1deb6ba11cf 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-29  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29  7:13 [binutils-gdb] LoongArch: include: Add support for tls le relax liu & zhensong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).