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.

elf, uapi: Add definition for DT_GNU_HASH

The definition is used by tools/testing/selftests/vDSO/parse_vdso.c.

To be able to build the vDSO selftests without a libc dependency,
add the define to the kernels own UAPI headers.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/libc-ddefs.html
Link: https://lore.kernel.org/all/20250226-parse_vdso-nolibc-v2-3-28e14e031ed8@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
50881d14 c4131140

+1
+1
include/uapi/linux/elf.h
··· 107 107 #define DT_VALRNGLO 0x6ffffd00 108 108 #define DT_VALRNGHI 0x6ffffdff 109 109 #define DT_ADDRRNGLO 0x6ffffe00 110 + #define DT_GNU_HASH 0x6ffffef5 110 111 #define DT_ADDRRNGHI 0x6ffffeff 111 112 #define DT_VERSYM 0x6ffffff0 112 113 #define DT_RELACOUNT 0x6ffffff9