Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2025 18:19:01 +0000
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7a41a7442ae4 - stable/13 - sys: Sync RISC-V relocations
Message-ID:  <69405115.26380.2a2e94f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=7a41a7442ae4e7efb6aaf03f02ea4ee56a5695f6

commit 7a41a7442ae4e7efb6aaf03f02ea4ee56a5695f6
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-07-10 22:58:06 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-12-15 17:56:37 +0000

    sys: Sync RISC-V relocations
    
    MFC after:      1 week
    
    (cherry picked from commit 65bd6c7acd1fba38ce0b234d5d777a2ebad7e807)
---
 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 663f7f0aece2..c9cf5e5c2ce6 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -1335,6 +1335,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
@@ -1360,10 +1361,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
@@ -1372,6 +1373,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
 
 #define	R_SPARC_NONE		0
 #define	R_SPARC_8		1


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69405115.26380.2a2e94f>