[PATCH] getauxval: fix crash on systems without HAVE_AUX_VECTOR
Markus Trippelsdorf
markus@trippelsdorf.de
Mon Apr 11 07:55:00 GMT 2016
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
More information about the Libc-alpha
mailing list