Skip to content

Commit 049d19b

Browse files
t-8chKAGA-KOKO
authored andcommitted
elf, uapi: Add definitions for VER_FLG_BASE and VER_FLG_WEAK
The definitions are used by tools/testing/selftests/vDSO/parse_vdso.c. To be able to build the vDSO selftests without a libc dependency, add the definitions to the kernels own UAPI headers. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kees Cook <kees@kernel.org> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-80869/index.html Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-4-28e14e031ed8@linutronix.de
1 parent 50881d1 commit 049d19b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/uapi/linux/elf.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ typedef __s64 Elf64_Sxword;
136136
#define STT_COMMON 5
137137
#define STT_TLS 6
138138

139+
#define VER_FLG_BASE 0x1
140+
#define VER_FLG_WEAK 0x2
141+
139142
#define ELF_ST_BIND(x) ((x) >> 4)
140143
#define ELF_ST_TYPE(x) ((x) & 0xf)
141144
#define ELF32_ST_BIND(x) ELF_ST_BIND(x)

0 commit comments

Comments
 (0)