[PATCH v4 06/10] loader: Fix return type of get_auxiliary().

Jinoh Kang jinoh.kang.kr at gmail.com
Fri Jan 28 12:40:43 CST 2022


This is required for fetching pointer-valued vectors (e.g.
AT_SYSINFO_EHDR).

Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>
---
 loader/preloader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loader/preloader.c b/loader/preloader.c
index 50d97a3984e..7d17136d3bc 100644
--- a/loader/preloader.c
+++ b/loader/preloader.c
@@ -1103,7 +1103,7 @@ static void set_auxiliary_values( struct preloader_state *state,
  *
  * Get a field of the auxiliary structure
  */
-static int get_auxiliary( struct wld_auxv *av, int type, int def_val )
+static ElfW(Addr) get_auxiliary( struct wld_auxv *av, int type, ElfW(Addr) def_val )
 {
   for ( ; av->a_type != AT_NULL; av++)
       if( av->a_type == type ) return av->a_un.a_val;
-- 
2.34.1




More information about the wine-devel mailing list