History

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).

Thomas Weißschuh committed 1 year ago

Commit 2c86f601 parent 049d19b1 file · +2 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/elf.h+2−0
@@ -11,6 +11,7 @@ typedef __u16 Elf32_Half; · 10 unmodified lines
11typedef __u32 Elf32_Off;11typedef __u32 Elf32_Off;
12typedef __s32 Elf32_Sword;12typedef __s32 Elf32_Sword;
13typedef __u32 Elf32_Word;13typedef __u32 Elf32_Word;
14typedef __u16 Elf32_Versym;
14 15
15/* 64-bit ELF base types. */16/* 64-bit ELF base types. */
16typedef __u64 Elf64_Addr;17typedef __u64 Elf64_Addr;
@@ -21,6 +22,7 @@ typedef __s32 Elf64_Sword; · 4 unmodified lines
21typedef __u32 Elf64_Word;22typedef __u32 Elf64_Word;
22typedef __u64 Elf64_Xword;23typedef __u64 Elf64_Xword;
23typedef __s64 Elf64_Sxword;24typedef __s64 Elf64_Sxword;
25typedef __u16 Elf64_Versym;
24 26
25/* These constants are for the segment types stored in the image headers */27/* These constants are for the segment types stored in the image headers */
26#define PT_NULL 028#define PT_NULL 0