This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]