git: d13a8521247f - stable/14 - sys: Delete stale comments in sys/elf_common.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Dec 2025 17:00:32 UTC
The branch stable/14 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=d13a8521247f10deb80cff652053fd74ebd9878b
commit d13a8521247f10deb80cff652053fd74ebd9878b
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-07-10 22:58:06 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-12-15 16:58:45 +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
(cherry picked from commit d26f481bcdfec9354614ccc0f7f694bd7bcc5a6c)
---
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 0b5a91019c70..6436490a6c07 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -1329,7 +1329,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
@@ -1342,8 +1341,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