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).
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -11,6 +11,7 @@ typedef __u16 Elf32_Half; · 10 unmodified lines | |||
| 11 | typedef __u32 Elf32_Off; | 11 | typedef __u32 Elf32_Off; |
| 12 | typedef __s32 Elf32_Sword; | 12 | typedef __s32 Elf32_Sword; |
| 13 | typedef __u32 Elf32_Word; | 13 | typedef __u32 Elf32_Word; |
| 14 | typedef __u16 Elf32_Versym; | ||
| 14 | 15 | ||
| 15 | /* 64-bit ELF base types. */ | 16 | /* 64-bit ELF base types. */ |
| 16 | typedef __u64 Elf64_Addr; | 17 | typedef __u64 Elf64_Addr; |
| @@ -21,6 +22,7 @@ typedef __s32 Elf64_Sword; · 4 unmodified lines | |||
| 21 | typedef __u32 Elf64_Word; | 22 | typedef __u32 Elf64_Word; |
| 22 | typedef __u64 Elf64_Xword; | 23 | typedef __u64 Elf64_Xword; |
| 23 | typedef __s64 Elf64_Sxword; | 24 | typedef __s64 Elf64_Sxword; |
| 25 | typedef __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 0 | 28 | #define PT_NULL 0 |