projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acccc93
)
save auxv pointer into libc struct early in dynamic linker startup
author
Rich Felker
<dalias@aerifal.cx>
Wed, 19 Nov 2014 05:34:29 +0000
(
00:34
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 19 Nov 2014 05:34:29 +0000
(
00:34
-0500)
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
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index c90fe99afc41bb3537a3d238528facd2443d0e94..1de430c65358973f276d20325f5284c038fe3204 100644
(file)
--- 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