]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: vDSO: vdso_standalone_test_x86: Use vdso_init_form_sysinfo_ehdr
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 26 Feb 2025 11:44:49 +0000 (12:44 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 3 Mar 2025 19:00:12 +0000 (20:00 +0100)
commit05c204acf5131740f5f4e193c9749b92da4bcb16
treee519c65655b3ffc3b20cb7adf702a5a98dd7c3bc
parent5caaa0aa7c61513a2f606fd6d00fc29ae475ce9e
selftests: vDSO: vdso_standalone_test_x86: Use vdso_init_form_sysinfo_ehdr

vdso_standalone_test_x86 is the only user of vdso_init_from_auxv().
Instead of combining the parsing the aux vector with the parsing of the
vDSO, split them apart into getauxval() and the regular
vdso_init_from_sysinfo_ehdr().

The implementation of getauxval() is taken from
tools/include/nolibc/stdlib.h.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-10-28e14e031ed8@linutronix.de
tools/testing/selftests/vDSO/vdso_standalone_test_x86.c