The branch main has been updated by jrtc27:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=65bd6c7acd1fba38ce0b234d5d777a2ebad7e807

commit 65bd6c7acd1fba38ce0b234d5d777a2ebad7e807
Author:     Jessica Clarke <jrt...@freebsd.org>
AuthorDate: 2025-07-10 22:58:06 +0000
Commit:     Jessica Clarke <jrt...@freebsd.org>
CommitDate: 2025-07-10 22:58:06 +0000

    sys: Sync RISC-V relocations
    
    MFC after:      1 week
---
 sys/sys/elf_common.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 61e1afdfe5c4..048550512c85 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -1364,6 +1364,7 @@ typedef struct {
 #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
 #define        R_RISCV_CALL            18
@@ -1389,10 +1390,10 @@ typedef struct {
 #define        R_RISCV_SUB16           38
 #define        R_RISCV_SUB32           39
 #define        R_RISCV_SUB64           40
+#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_RELAX           51
 #define        R_RISCV_SUB6            52
 #define        R_RISCV_SET6            53
@@ -1401,6 +1402,14 @@ typedef struct {
 #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
+#define        R_RISCV_VENDOR          191
 
 /*
  * Loongson LoongArch relocation types.

Reply via email to