Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

This reverts commit c9fbaa879508 ("selftests: vDSO: parse_vdso: Use UAPI
headers instead of libc headers")

The kernel headers were used to make parse_vdso.c compatible with
nolibc. Unfortunately linux/elf.h is incompatible with glibc's
sys/auxv.h. When using glibc it is therefore not possible build
parse_vdso.c as part of the same compilation unit as its caller
as sys/auxv.h is needed for getauxval().

In the meantime nolibc gained its own elf.h, providing compatibility
with the documented libc interfaces.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260227-vdso-selftest-cleanups-v2-1-d84830fa8beb@linutronix.de

authored by

Thomas Weißschuh and committed by
Borislav Petkov (AMD)
5abfa0c4 260b98f7

+1 -4
-2
tools/testing/selftests/vDSO/Makefile
··· 19 19 20 20 include ../lib.mk 21 21 22 - CFLAGS += $(TOOLS_INCLUDES) 23 - 24 22 CFLAGS_NOLIBC := -nostdlib -nostdinc -ffreestanding -fno-asynchronous-unwind-tables \ 25 23 -fno-stack-protector -include $(top_srcdir)/tools/include/nolibc/nolibc.h \ 26 24 -I$(top_srcdir)/tools/include/nolibc/ $(KHDR_INCLUDES)
+1 -2
tools/testing/selftests/vDSO/parse_vdso.c
··· 19 19 #include <stdint.h> 20 20 #include <string.h> 21 21 #include <limits.h> 22 - #include <linux/auxvec.h> 23 - #include <linux/elf.h> 22 + #include <elf.h> 24 23 25 24 #include "parse_vdso.h" 26 25