diff options
author | Denis Vlasenko | 2007-10-11 10:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-11 10:05:36 +0000 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /libbb | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | busybox-9b49a5ed8551e46892af3f676e5d96d21b540e3c.zip busybox-9b49a5ed8551e46892af3f676e5d96d21b540e3c.tar.gz |
add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 7808df5..953f1e7 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -127,7 +127,7 @@ const struct bb_applet *find_applet_by_name(const char *name) int *const bb_errno __attribute__ ((section (".data"))); #endif -void bbox_prepare_main(char **argv) +void lbb_prepare(char **argv) { #ifdef __GLIBC__ (*(int **)&bb_errno) = __errno_location(); @@ -661,12 +661,12 @@ void run_applet_and_exit(const char *name, char **argv) #if ENABLE_BUILD_LIBBUSYBOX -int libbusybox_main(int argc, char **argv) +int lbb_main(int argc, char **argv) #else int main(int argc, char **argv) #endif { - bbox_prepare_main(argv); + lbb_prepare(argv); #if !BB_MMU /* NOMMU re-exec trick sets high-order bit in first byte of name */ |