mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] elf.h: update RISC-V relocation types
@ 2024-01-26 23:55 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2024-01-26 23:55 UTC (permalink / raw)
  To: musl; +Cc: Fangrui Song

Note: Some relocation types were only used by binutils and accidentally
exposed to previous versions of psABI (e.g.
https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/205
https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/323). One of
the values has been reused by GOT32_PCREL.
---
 include/elf.h | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/include/elf.h b/include/elf.h
index 72d17c3a..ad3519ad 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -3254,6 +3254,7 @@ enum
 #define R_RISCV_TLS_DTPREL64    9
 #define R_RISCV_TLS_TPREL32     10
 #define R_RISCV_TLS_TPREL64     11
+#define R_RISCV_TLSDESC         12
 
 #define R_RISCV_BRANCH          16
 #define R_RISCV_JAL             17
@@ -3280,16 +3281,11 @@ enum
 #define R_RISCV_SUB16           38
 #define R_RISCV_SUB32           39
 #define R_RISCV_SUB64           40
-#define R_RISCV_GNU_VTINHERIT   41
-#define R_RISCV_GNU_VTENTRY     42
+#define R_RISCV_GOT32_PCREL     41
 #define R_RISCV_ALIGN           43
 #define R_RISCV_RVC_BRANCH      44
 #define R_RISCV_RVC_JUMP        45
 #define R_RISCV_RVC_LUI         46
-#define R_RISCV_GPREL_I         47
-#define R_RISCV_GPREL_S         48
-#define R_RISCV_TPREL_I         49
-#define R_RISCV_TPREL_S         50
 #define R_RISCV_RELAX           51
 #define R_RISCV_SUB6            52
 #define R_RISCV_SET6            53
@@ -3297,6 +3293,14 @@ enum
 #define R_RISCV_SET16           55
 #define R_RISCV_SET32           56
 #define R_RISCV_32_PCREL        57
+#define R_RISCV_IRELATIVE       58
+#define R_RISCV_PLT32           59
+#define R_RISCV_SET_ULEB128     60
+#define R_RISCV_SUB_ULEB128     61
+#define R_RISCV_TLSDESC_HI20    62
+#define R_RISCV_TLSDESC_LOAD_LO12 63
+#define R_RISCV_TLSDESC_ADD_LO12  64
+#define R_RISCV_TLSDESC_CALL    65
 
 #ifdef __cplusplus
 }
-- 
2.39.GIT


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

only message in thread, other threads:[~2024-01-26 23:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-26 23:55 [musl] [PATCH] elf.h: update RISC-V relocation types Fangrui Song

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).