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.
Signed-off-by: Fangrui Song <maskray@xxxxxxxxxx>
Tested-by: Xi Ruoyao <xry111@xxxxxxxxxxx>
--
Changes from v1:
* fix style of a multi-line comment. ignore false positive suggestions from checkpath.pl: `ELF(Word) *`
---
tools/testing/selftests/vDSO/parse_vdso.c | 105 ++++++++++++++++------
1 file changed, 79 insertions(+), 26 deletions(-)