path: root/src
diff options
authorRich Felker <>2014-11-19 00:34:29 -0500
committerRich Felker <>2014-11-19 00:34:29 -0500
commitd8bdc97d148088bdaa672f56d4b8e0a15b03e70e (patch)
treee8b87f833bee27a47e6d7365a890a611ee2545d6 /src
parentacccc93e084641861ca553317edb7da7791833b5 (diff)
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.
Diffstat (limited to 'src')
1 files changed, 1 insertions, 0 deletions
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) = 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