public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libelf: Sync elf.h from Glibc
@ 2023-08-29 13:14 Xi Ruoyao
  2023-08-29 13:14 ` [PATCH 2/2] backends: Update list of LoongArch relocations Xi Ruoyao
  2023-08-29 13:23 ` [PATCH 1/2] libelf: Sync elf.h from Glibc Mark Wielaard
  0 siblings, 2 replies; 5+ messages in thread
From: Xi Ruoyao @ 2023-08-29 13:14 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Youling Tang, Mark Wielaard, Xi Ruoyao

Adds new LoongArch relocations.

	* elf.h: Update from glibc.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
---
 libelf/elf.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libelf/elf.h b/libelf/elf.h
index 89fc8021..9c51073f 100644
--- a/libelf/elf.h
+++ b/libelf/elf.h
@@ -4205,6 +4205,15 @@ enum
 #define R_LARCH_TLS_GD_HI20 98
 #define R_LARCH_32_PCREL 99
 #define R_LARCH_RELAX 100
+#define R_LARCH_DELETE 101
+#define R_LARCH_ALIGN 102
+#define R_LARCH_PCREL20_S2 103
+#define R_LARCH_CFA 104
+#define R_LARCH_ADD6 105
+#define R_LARCH_SUB6 106
+#define R_LARCH_ADD_ULEB128 107
+#define R_LARCH_SUB_ULEB128 108
+#define R_LARCH_64_PCREL 109
 
 /* ARC specific declarations.  */
 
-- 
2.42.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] backends: Update list of LoongArch relocations
  2023-08-29 13:14 [PATCH 1/2] libelf: Sync elf.h from Glibc Xi Ruoyao
@ 2023-08-29 13:14 ` Xi Ruoyao
  2023-08-29 13:23   ` Mark Wielaard
  2023-08-29 13:23 ` [PATCH 1/2] libelf: Sync elf.h from Glibc Mark Wielaard
  1 sibling, 1 reply; 5+ messages in thread
From: Xi Ruoyao @ 2023-08-29 13:14 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Youling Tang, Mark Wielaard, Xi Ruoyao

	* backends/loongarch_reloc.def: Add DELETE, ALIGN, PCREL20_S2,
	CFA, ADD6, SUB6, ADD_ULEB128, SUB_ULEB128, 64_PCREL.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
---
 backends/loongarch_reloc.def | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/backends/loongarch_reloc.def b/backends/loongarch_reloc.def
index fd204924..a39eefd9 100644
--- a/backends/loongarch_reloc.def
+++ b/backends/loongarch_reloc.def
@@ -119,3 +119,12 @@ RELOC_TYPE (TLS_GD_PC_HI20,		REL)
 RELOC_TYPE (TLS_GD_HI20,		REL)
 RELOC_TYPE (32_PCREL,			REL)
 RELOC_TYPE (RELAX,			REL)
+RELOC_TYPE (DELETE,			REL)
+RELOC_TYPE (ALIGN,			REL)
+RELOC_TYPE (PCREL20_S2,			REL)
+RELOC_TYPE (CFA,			REL)
+RELOC_TYPE (ADD6,			REL)
+RELOC_TYPE (SUB6,			REL)
+RELOC_TYPE (ADD_ULEB128,		REL)
+RELOC_TYPE (SUB_ULEB128,		REL)
+RELOC_TYPE (64_PCREL,			REL)
-- 
2.42.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] libelf: Sync elf.h from Glibc
  2023-08-29 13:14 [PATCH 1/2] libelf: Sync elf.h from Glibc Xi Ruoyao
  2023-08-29 13:14 ` [PATCH 2/2] backends: Update list of LoongArch relocations Xi Ruoyao
@ 2023-08-29 13:23 ` Mark Wielaard
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Wielaard @ 2023-08-29 13:23 UTC (permalink / raw)
  To: Xi Ruoyao, elfutils-devel; +Cc: Youling Tang

On Tue, 2023-08-29 at 21:14 +0800, Xi Ruoyao via Elfutils-devel wrote:
> Adds new LoongArch relocations.
> 
> 	* elf.h: Update from glibc.

Thanks, matches current glibc elf/elf.h.

Pushed,

Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] backends: Update list of LoongArch relocations
  2023-08-29 13:14 ` [PATCH 2/2] backends: Update list of LoongArch relocations Xi Ruoyao
@ 2023-08-29 13:23   ` Mark Wielaard
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Wielaard @ 2023-08-29 13:23 UTC (permalink / raw)
  To: Xi Ruoyao, elfutils-devel; +Cc: Youling Tang

On Tue, 2023-08-29 at 21:14 +0800, Xi Ruoyao via Elfutils-devel wrote:
> 	* backends/loongarch_reloc.def: Add DELETE, ALIGN, PCREL20_S2,
> 	CFA, ADD6, SUB6, ADD_ULEB128, SUB_ULEB128, 64_PCREL.

Thanks, looks correct.

Pushed,

Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] backends: Update list of LoongArch relocations
  2024-02-23  4:47 [PATCH 0/2] Update LoongArch relocations for psABI v2.30 Xi Ruoyao
@ 2024-02-23  4:47 ` Xi Ruoyao
  0 siblings, 0 replies; 5+ messages in thread
From: Xi Ruoyao @ 2024-02-23  4:47 UTC (permalink / raw)
  To: elfutils-devel
  Cc: Mark Wielaard, WANG Xuerui, Jinyang He, Youling Tang, Xi Ruoyao

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
---
 backends/loongarch_reloc.def | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/backends/loongarch_reloc.def b/backends/loongarch_reloc.def
index a39eefd9..cdc83211 100644
--- a/backends/loongarch_reloc.def
+++ b/backends/loongarch_reloc.def
@@ -128,3 +128,20 @@ RELOC_TYPE (SUB6,			REL)
 RELOC_TYPE (ADD_ULEB128,		REL)
 RELOC_TYPE (SUB_ULEB128,		REL)
 RELOC_TYPE (64_PCREL,			REL)
+RELOC_TYPE (CALL36,			REL)
+RELOC_TYPE (TLS_DESC_PC_HI20,		REL)
+RELOC_TYPE (TLS_DESC_PC_LO12,		REL)
+RELOC_TYPE (TLS_DESC64_PC_LO20,		REL)
+RELOC_TYPE (TLS_DESC64_PC_HI12,		REL)
+RELOC_TYPE (TLS_DESC_HI20,		REL)
+RELOC_TYPE (TLS_DESC_LO12,		REL)
+RELOC_TYPE (TLS_DESC64_LO20,		REL)
+RELOC_TYPE (TLS_DESC64_HI12,		REL)
+RELOC_TYPE (TLS_DESC_LD,		REL)
+RELOC_TYPE (TLS_DESC_CALL,		REL)
+RELOC_TYPE (TLS_LE_HI20_R,		REL)
+RELOC_TYPE (TLS_LE_ADD_R,		REL)
+RELOC_TYPE (TLS_LE_LO12_R,		REL)
+RELOC_TYPE (TLS_LD_PCREL20_S2,		REL)
+RELOC_TYPE (TLS_GD_PCREL20_S2,		REL)
+RELOC_TYPE (TLS_DESC_PCREL20_S2,	REL)
-- 
2.43.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-23  4:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29 13:14 [PATCH 1/2] libelf: Sync elf.h from Glibc Xi Ruoyao
2023-08-29 13:14 ` [PATCH 2/2] backends: Update list of LoongArch relocations Xi Ruoyao
2023-08-29 13:23   ` Mark Wielaard
2023-08-29 13:23 ` [PATCH 1/2] libelf: Sync elf.h from Glibc Mark Wielaard
2024-02-23  4:47 [PATCH 0/2] Update LoongArch relocations for psABI v2.30 Xi Ruoyao
2024-02-23  4:47 ` [PATCH 2/2] backends: Update list of LoongArch relocations Xi Ruoyao

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).