Re: [PATCH v2 03/16] elf, uapi: Add definition for DT_GNU_HASH

2025-02-28 Thread Vincenzo Frascino



On 26/02/2025 11:44, Thomas Weißschuh wrote:
> 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.
> 
> Link: 
> https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/libc-ddefs.html
> Reviewed-by: Kees Cook 
> Signed-off-by: Thomas Weißschuh 
> ---
>  include/uapi/linux/elf.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
> index 
> 448695c7364042b10682acc8223eb6053ad039dd..c5383cc7bb13c931fea083de5243c4006f795006
>  100644
> --- a/include/uapi/linux/elf.h
> +++ b/include/uapi/linux/elf.h
> @@ -107,6 +107,7 @@ typedef __s64 Elf64_Sxword;
>  #define DT_VALRNGLO  0x6d00
>  #define DT_VALRNGHI  0x6dff
>  #define DT_ADDRRNGLO 0x6e00
> +#define DT_GNU_HASH  0x6ef5
>  #define DT_ADDRRNGHI 0x6eff
>  #define DT_VERSYM0x6ff0
>  #define DT_RELACOUNT 0x6ff9
> 

Reviewed-by: Vincenzo Frascino 

-- 
Regards,
Vincenzo




[PATCH v2 03/16] elf, uapi: Add definition for DT_GNU_HASH

2025-02-26 Thread Thomas Weißschuh
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.

Link: 
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/libc-ddefs.html
Reviewed-by: Kees Cook 
Signed-off-by: Thomas Weißschuh 
---
 include/uapi/linux/elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index 
448695c7364042b10682acc8223eb6053ad039dd..c5383cc7bb13c931fea083de5243c4006f795006
 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -107,6 +107,7 @@ typedef __s64   Elf64_Sxword;
 #define DT_VALRNGLO0x6d00
 #define DT_VALRNGHI0x6dff
 #define DT_ADDRRNGLO   0x6e00
+#define DT_GNU_HASH0x6ef5
 #define DT_ADDRRNGHI   0x6eff
 #define DT_VERSYM  0x6ff0
 #define DT_RELACOUNT   0x6ff9

-- 
2.48.1