From d8bdc97d148088bdaa672f56d4b8e0a15b03e70e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 19 Nov 2014 00:34:29 -0500 Subject: [PATCH] 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. --- src/ldso/dynlink.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1