diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-11-19 00:34:29 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-11-19 00:34:29 -0500 |
commit | d8bdc97d148088bdaa672f56d4b8e0a15b03e70e (patch) | |
tree | e8b87f833bee27a47e6d7365a890a611ee2545d6 | |
parent | acccc93e084641861ca553317edb7da7791833b5 (diff) | |
download | musl-d8bdc97d148088bdaa672f56d4b8e0a15b03e70e.tar.gz musl-d8bdc97d148088bdaa672f56d4b8e0a15b03e70e.tar.bz2 musl-d8bdc97d148088bdaa672f56d4b8e0a15b03e70e.tar.xz musl-d8bdc97d148088bdaa672f56d4b8e0a15b03e70e.zip |
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.
-rw-r--r-- | src/ldso/dynlink.c | 1 |
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) 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 |