Skip to content

Commit 2c86f60

Browse files
t-8chKAGA-KOKO
authored andcommitted
elf, uapi: Add type ElfXX_Versym
The type is used by tools/testing/selftests/vDSO/parse_vdso.c. To be able to build the vDSO selftests without a libc dependency, add the type to the kernels own UAPI headers. As documented by elf(5). 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://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-5-28e14e031ed8@linutronix.de
1 parent 049d19b commit 2c86f60

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/uapi/linux/elf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ typedef __u16 Elf32_Half;
1111
typedef __u32 Elf32_Off;
1212
typedef __s32 Elf32_Sword;
1313
typedef __u32 Elf32_Word;
14+
typedef __u16 Elf32_Versym;
1415

1516
/* 64-bit ELF base types. */
1617
typedef __u64 Elf64_Addr;
@@ -21,6 +22,7 @@ typedef __s32 Elf64_Sword;
2122
typedef __u32 Elf64_Word;
2223
typedef __u64 Elf64_Xword;
2324
typedef __s64 Elf64_Sxword;
25+
typedef __u16 Elf64_Versym;
2426

2527
/* These constants are for the segment types stored in the image headers */
2628
#define PT_NULL 0

0 commit comments

Comments
 (0)