From 9b49a5ed8551e46892af3f676e5d96d21b540e3c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 11 Oct 2007 10:05:36 +0000 Subject: add -fvisibility=hidden to CC flags, mark XXX_main functions EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so --- runit/chpst.c | 2 +- runit/runsv.c | 2 +- runit/runsvdir.c | 2 +- runit/sv.c | 2 +- runit/svlogd.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'runit') diff --git a/runit/chpst.c b/runit/chpst.c index 1bc8e18..0f605cc 100644 --- a/runit/chpst.c +++ b/runit/chpst.c @@ -289,7 +289,7 @@ static void envuidgid(int, char **) ATTRIBUTE_NORETURN; static void envdir(int, char **) ATTRIBUTE_NORETURN; static void softlimit(int, char **) ATTRIBUTE_NORETURN; -int chpst_main(int argc, char **argv); +int chpst_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int chpst_main(int argc, char **argv) { INIT_G(); diff --git a/runit/runsv.c b/runit/runsv.c index 7cf142d..8c5a4d4 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -439,7 +439,7 @@ static int ctrl(struct svdir *s, char c) return 1; } -int runsv_main(int argc, char **argv); +int runsv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int runsv_main(int argc, char **argv) { struct stat s; diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 924f771..9e98ca6 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c @@ -204,7 +204,7 @@ static int setup_log(void) return 1; } -int runsvdir_main(int argc, char **argv); +int runsvdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int runsvdir_main(int argc, char **argv) { struct stat s; diff --git a/runit/sv.c b/runit/sv.c index 757391a..e31adff 100644 --- a/runit/sv.c +++ b/runit/sv.c @@ -411,7 +411,7 @@ static int control(const char *a) return 1; } -int sv_main(int argc, char **argv); +int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int sv_main(int argc, char **argv) { unsigned opt; diff --git a/runit/svlogd.c b/runit/svlogd.c index bf46ef7..5f682b1 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -843,7 +843,7 @@ static void logmatch(struct logdir *ld) } } -int svlogd_main(int argc, char **argv); +int svlogd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int svlogd_main(int argc, char **argv) { char *r,*l,*b; -- cgit v1.1