This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] getauxval: fix crash on systems without HAVE_AUX_VECTOR
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: GNU C Library <libc-alpha at sourceware dot org>, bug-hurd at gnu dot org
- Date: Mon, 11 Apr 2016 09:55:12 +0200
- Subject: Re: [PATCH] getauxval: fix crash on systems without HAVE_AUX_VECTOR
- Authentication-results: sourceware.org; auth=none
- References: <20160402105716 dot GA10998 at var dot jdll dot illyse dot net>
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