selftests: vDSO: parse_vdso: Use UAPI headers instead of libc headers

To allow the usage of parse_vdso.c together with a limited libc like
nolibc, use the kernels own elf.h and auxvec.h headers.

Signed-off-by: Thomas Weißschuh <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Vincenzo Frascino <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
This commit is contained in:
Thomas Weißschuh authored and Thomas Gleixner committed 2025-03-03 20:00:12 +01:00
1 parent 09dcec6470
commit c9fbaa8795
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -19,6 +19,9 @@ LDLIBS += -lgcc_s
endif
include ../lib.mk
CFLAGS += $(TOOLS_INCLUDES)
$(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c
$(OUTPUT)/vdso_test_getcpu: parse_vdso.c vdso_test_getcpu.c
$(OUTPUT)/vdso_test_abi: parse_vdso.c vdso_test_abi.c
+2 -1
View File
@@ -19,7 +19,8 @@
#include <stdint.h>
#include <string.h>
#include <limits.h>
#include <elf.h>
#include <linux/auxvec.h>
#include <linux/elf.h>
#include "parse_vdso.h"