From 3176b57e528f335139f37ada07063f3619158f56 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 21 Apr 2014 20:10:08 -0400 Subject: [PATCH] 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. --- src/env/__libc_start_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c index d7ec3abd..3498afbd 100644 --- a/src/env/__libc_start_main.c +++ b/src/env/__libc_start_main.c @@ -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 }; -- 2.25.1