The branch main has been updated by jrtc27:

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

commit d26f481bcdfec9354614ccc0f7f694bd7bcc5a6c
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: Delete stale comments in sys/elf_common.h
    
    Originally the relocations for RISC-V were partitioned into dynamic and
    static (with those that are both being classed as dynamic), but they
    were packed next to each other, and so as new relocations were added
    they were allocated sequentially, at the end of the static block, even
    if really dynamic, R_RISCV_IRELATIVE being the first such case (and only
    one we currently have a definition for). Delete the misleading comments.
    
    Fixes:          4b88ccbc79cc ("Sync relocation definitions")
    MFC after:      1 week
---
 sys/sys/elf_common.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 87460aae2dd4..61e1afdfe5c4 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -1352,7 +1352,6 @@ typedef struct {
  * RISC-V relocation types.
  */
 
-/* Relocation types used by the dynamic linker. */
 #define        R_RISCV_NONE            0
 #define        R_RISCV_32              1
 #define        R_RISCV_64              2
@@ -1365,8 +1364,6 @@ typedef struct {
 #define        R_RISCV_TLS_DTPREL64    9
 #define        R_RISCV_TLS_TPREL32     10
 #define        R_RISCV_TLS_TPREL64     11
-
-/* Relocation types not used by the dynamic linker. */
 #define        R_RISCV_BRANCH          16
 #define        R_RISCV_JAL             17
 #define        R_RISCV_CALL            18

Reply via email to