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 --- include/busybox.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/busybox.h') diff --git a/include/busybox.h b/include/busybox.h index 1c23b9bb0..5c01eca8d 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -48,12 +48,22 @@ struct bb_applet { #endif }; + /* Defined in appletlib.c */ extern const struct bb_applet applets[]; extern const unsigned short NUM_APPLETS; -void bbox_prepare_main(char **argv); + +/* Length of these names has effect on size of libbusybox + * and "individual" binaries. Keep them short. + */ +void lbb_prepare(char **argv) MAIN_EXTERNALLY_VISIBLE; #if ENABLE_BUILD_LIBBUSYBOX -int libbusybox_main(int argc, char **argv); +#if ENABLE_FEATURE_SHARED_BUSYBOX +int lbb_main(int argc, char **argv) EXTERNALLY_VISIBLE; +#else +int lbb_main(int argc, char **argv); #endif +#endif + #endif /* _BB_INTERNAL_H_ */ -- cgit v1.2.3