summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-11 10:05:36 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-11 10:05:36 +0000
commit9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch)
tree3d177ef7f3f5e8338690718c86012203ef29a7da /libbb
parent8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff)
downloadbusybox-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 'libbb')
-rw-r--r--libbb/appletlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 7808df501..953f1e7e5 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -127,7 +127,7 @@ const struct bb_applet *find_applet_by_name(const char *name)
127int *const bb_errno __attribute__ ((section (".data"))); 127int *const bb_errno __attribute__ ((section (".data")));
128#endif 128#endif
129 129
130void bbox_prepare_main(char **argv) 130void lbb_prepare(char **argv)
131{ 131{
132#ifdef __GLIBC__ 132#ifdef __GLIBC__
133 (*(int **)&bb_errno) = __errno_location(); 133 (*(int **)&bb_errno) = __errno_location();
@@ -661,12 +661,12 @@ void run_applet_and_exit(const char *name, char **argv)
661 661
662 662
663#if ENABLE_BUILD_LIBBUSYBOX 663#if ENABLE_BUILD_LIBBUSYBOX
664int libbusybox_main(int argc, char **argv) 664int lbb_main(int argc, char **argv)
665#else 665#else
666int main(int argc, char **argv) 666int main(int argc, char **argv)
667#endif 667#endif
668{ 668{
669 bbox_prepare_main(argv); 669 lbb_prepare(argv);
670 670
671#if !BB_MMU 671#if !BB_MMU
672 /* NOMMU re-exec trick sets high-order bit in first byte of name */ 672 /* NOMMU re-exec trick sets high-order bit in first byte of name */