提交 3176b57e 编写于 作者: R Rich Felker

make __init_libc static for non-shared libc

being static allows it to be inlined in __libc_start_main; inlining
should take place at all levels since the function is called exactly
once. this further reduces mandatory startup code size for static
binaries.
上级 fbcfed7c
......@@ -22,6 +22,9 @@ weak_alias(dummy1, __init_ssp);
extern size_t __hwcap, __sysinfo;
extern char *__progname, *__progname_full;
#ifndef SHARED
static
#endif
void __init_libc(char **envp, char *pn)
{
size_t i, *auxv, aux[AUX_CNT] = { 0 };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册