提交 d8bdc97d 编写于 作者: R Rich Felker

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.
上级 acccc93e
...@@ -1126,6 +1126,7 @@ void *__dynlink(int argc, char **argv) ...@@ -1126,6 +1126,7 @@ void *__dynlink(int argc, char **argv)
libc.secure = 1; libc.secure = 1;
} }
libc.page_size = aux[AT_PAGESZ]; libc.page_size = aux[AT_PAGESZ];
libc.auxv = auxv;
/* If the dynamic linker was invoked as a program itself, AT_BASE /* 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 * will not be set. In that case, we assume the base address is
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册