git: 75fa1821e4e0 - main - elf_common.h: Correct R_X86_64_JUMP_SLOT name
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Nov 2026 00:40:14 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=75fa1821e4e011ee359788bb4e038159321569bc
commit 75fa1821e4e011ee359788bb4e038159321569bc
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-02-20 21:33:00 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-11-20 00:39:56 +0000
elf_common.h: Correct R_X86_64_JUMP_SLOT name
x86-64 ABI dated March 12, 2025 lists this relocation type as
R_X86_64_JUMP_SLOT. Update the name, and add R_X86_64_JMP_SLOT (without
a "U") as an alias.
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61776
---
sys/sys/elf_common.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 2a24eb33e729..d015f1cae8a0 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -1687,7 +1687,8 @@ typedef struct {
#define R_X86_64_PLT32 4 /* PC-relative 32 bit PLT offset. */
#define R_X86_64_COPY 5 /* Copy data from shared object. */
#define R_X86_64_GLOB_DAT 6 /* Set GOT entry to data address. */
-#define R_X86_64_JMP_SLOT 7 /* Set GOT entry to code address. */
+#define R_X86_64_JUMP_SLOT 7 /* Set GOT entry to code address. */
+#define R_X86_64_JMP_SLOT R_X86_64_JUMP_SLOT /* Alternate name. */
#define R_X86_64_RELATIVE 8 /* Add load address of shared object. */
#define R_X86_64_GOTPCREL 9 /* Add 32 bit signed pcrel offset to GOT. */
#define R_X86_64_32 10 /* Add 32 bit zero extended symbol value */