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
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; · 4 unmodified lines
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