bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] getauxval: fix crash on systems without HAVE_AUX_VECTOR


From: Markus Trippelsdorf
Subject: Re: [PATCH] getauxval: fix crash on systems without HAVE_AUX_VECTOR
Date: Mon, 11 Apr 2016 09:55:12 +0200

On 2016.04.02 at 12:57 +0200, Samuel Thibault wrote:
> Systems without HAVE_AUX_VECTOR have GLRO(dl_auxv) == NULL, and
> getauxval would thus crash.

Your commit 0cdc5e930a breaks the build for me:

In file included from ../sysdeps/x86_64/ldsodefs.h:54:0,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:22,
                 from getauxval.c:20:
getauxval.c: In function ‘__getauxval’:
../sysdeps/generic/ldsodefs.h:439:21: error: ‘_dl_auxv’ undeclared (first use 
in this function)
 # define GLRO(name) _##name
                     ^
getauxval.c:34:12: note: in expansion of macro ‘GLRO’
   for (p = GLRO(dl_auxv); p->a_type != AT_NULL; p++)
            ^~~~
../sysdeps/generic/ldsodefs.h:439:21: note: each undeclared identifier is 
reported only once for each function it appears in
 # define GLRO(name) _##name
                     ^
getauxval.c:34:12: note: in expansion of macro ‘GLRO’
   for (p = GLRO(dl_auxv); p->a_type != AT_NULL; p++)
            ^~~~
../o-iterator.mk:9: recipe for target '/var/tmp/glibc-build/misc/getauxval.o' 
failed


-- 
Markus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]