selftests/vDSO: support DT_GNU_HASH
authorFangrui Song <i@maskray.me>
Fri, 6 Dec 2024 13:07:25 +0000 (21:07 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 15 Jan 2025 00:06:31 +0000 (17:06 -0700)
commite0746bde6f820a6239628a5c17653b5c3c3d56df
treecadfa446fafff18c4b5cd84c68e09fea5be22a0f
parenteed8ecdf123e6d7874b5d3b71dab8a01747a4305
selftests/vDSO: support DT_GNU_HASH

glibc added support for DT_GNU_HASH in 2006 and DT_HASH has been
obsoleted for more than one decade in many Linux distributions.

Many vDSOs support DT_GNU_HASH. This patch adds selftests support.

Link: https://lore.kernel.org/r/20241206130724.7944-2-xry111@xry111.site
Signed-off-by: Fangrui Song <i@maskray.me>
Tested-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Xi Ruoyao <xry111@xry111.site> # rebase
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/vDSO/parse_vdso.c