From: Rich Felker Date: Wed, 19 Nov 2014 05:34:29 +0000 (-0500) Subject: save auxv pointer into libc struct early in dynamic linker startup X-Git-Tag: v1.1.6~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8bdc97d148088bdaa672f56d4b8e0a15b03e70e;p=oweals%2Fmusl.git save auxv pointer into libc struct early in dynamic linker startup this allows most code to assume it has already been saved, and is a prerequisite for upcoming changes for arm atomic/tls operations. --- diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index c90fe99a..1de430c6 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -1126,6 +1126,7 @@ void *__dynlink(int argc, char **argv) libc.secure = 1; } libc.page_size = aux[AT_PAGESZ]; + libc.auxv = auxv; /* If the dynamic linker was invoked as a program itself, AT_BASE * will not be set. In that case, we assume the base address is