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:
fbcfed7
)
make __init_libc static for non-shared libc
author
Rich Felker
<dalias@aerifal.cx>
Tue, 22 Apr 2014 00:10:08 +0000
(20:10 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 22 Apr 2014 00:10:08 +0000
(20:10 -0400)
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
patch
|
blob
|
history
diff --git
a/src/env/__libc_start_main.c
b/src/env/__libc_start_main.c
index d7ec3abd8ae94ba79a340fbcdaeba03d37a35ce4..3498afbd4ab4aca6c4c9f253724ad3269ccaf310 100644
(file)
--- 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 };