diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /runit | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.gz busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.bz2 busybox-w32-9b49a5ed8551e46892af3f676e5d96d21b540e3c.zip |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 2 | ||||
-rw-r--r-- | runit/runsv.c | 2 | ||||
-rw-r--r-- | runit/runsvdir.c | 2 | ||||
-rw-r--r-- | runit/sv.c | 2 | ||||
-rw-r--r-- | runit/svlogd.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 1bc8e18a3..0f605cc45 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -289,7 +289,7 @@ static void envuidgid(int, char **) ATTRIBUTE_NORETURN; | |||
289 | static void envdir(int, char **) ATTRIBUTE_NORETURN; | 289 | static void envdir(int, char **) ATTRIBUTE_NORETURN; |
290 | static void softlimit(int, char **) ATTRIBUTE_NORETURN; | 290 | static void softlimit(int, char **) ATTRIBUTE_NORETURN; |
291 | 291 | ||
292 | int chpst_main(int argc, char **argv); | 292 | int chpst_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
293 | int chpst_main(int argc, char **argv) | 293 | int chpst_main(int argc, char **argv) |
294 | { | 294 | { |
295 | INIT_G(); | 295 | INIT_G(); |
diff --git a/runit/runsv.c b/runit/runsv.c index 7cf142d8a..8c5a4d4ea 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -439,7 +439,7 @@ static int ctrl(struct svdir *s, char c) | |||
439 | return 1; | 439 | return 1; |
440 | } | 440 | } |
441 | 441 | ||
442 | int runsv_main(int argc, char **argv); | 442 | int runsv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
443 | int runsv_main(int argc, char **argv) | 443 | int runsv_main(int argc, char **argv) |
444 | { | 444 | { |
445 | struct stat s; | 445 | struct stat s; |
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 924f771b7..9e98ca6f8 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -204,7 +204,7 @@ static int setup_log(void) | |||
204 | return 1; | 204 | return 1; |
205 | } | 205 | } |
206 | 206 | ||
207 | int runsvdir_main(int argc, char **argv); | 207 | int runsvdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
208 | int runsvdir_main(int argc, char **argv) | 208 | int runsvdir_main(int argc, char **argv) |
209 | { | 209 | { |
210 | struct stat s; | 210 | struct stat s; |
diff --git a/runit/sv.c b/runit/sv.c index 757391a54..e31adffed 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -411,7 +411,7 @@ static int control(const char *a) | |||
411 | return 1; | 411 | return 1; |
412 | } | 412 | } |
413 | 413 | ||
414 | int sv_main(int argc, char **argv); | 414 | int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
415 | int sv_main(int argc, char **argv) | 415 | int sv_main(int argc, char **argv) |
416 | { | 416 | { |
417 | unsigned opt; | 417 | unsigned opt; |
diff --git a/runit/svlogd.c b/runit/svlogd.c index bf46ef7f8..5f682b19c 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -843,7 +843,7 @@ static void logmatch(struct logdir *ld) | |||
843 | } | 843 | } |
844 | } | 844 | } |
845 | 845 | ||
846 | int svlogd_main(int argc, char **argv); | 846 | int svlogd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
847 | int svlogd_main(int argc, char **argv) | 847 | int svlogd_main(int argc, char **argv) |
848 | { | 848 | { |
849 | char *r,*l,*b; | 849 | char *r,*l,*b; |