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 0/2] Update LoongArch relocations for psABI v2.30
@ 2024-02-23  4:47 Xi Ruoyao
  2024-02-23  4:47 ` [PATCH 2/2] backends: Update list of LoongArch relocations Xi Ruoyao
  0 siblings, 1 reply; 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

LoongArch psABI v2.30 has introduced 17 new reloc types for TLS
descriptor, TLS LE relaxation, and medium code model function call.  Add
them to elfutils.

Tested on loongarch64-linux-gnu with Binutils-2.42 and GCC 14 (trunk).

Xi Ruoyao (2):
  libelf: Sync elf.h from glibc
  backends: Update list of LoongArch relocations

 backends/loongarch_reloc.def | 17 +++++++++++++++++
 libelf/elf.h                 | 31 ++++++++++++++++++++++++++++++-
 2 files changed, 47 insertions(+), 1 deletion(-)

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