add -fvisibility=hidden to CC flags, mark XXX_main functions
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 09b03d0..7014681 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -74,7 +74,7 @@
NEW_MOD_INITIALIZING = 64
};
-int lsmod_main(int argc, char **argv);
+int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int lsmod_main(int argc, char **argv)
{
struct module_info info;
@@ -140,7 +140,7 @@
#else /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */
-int lsmod_main(int argc, char **argv);
+int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int lsmod_main(int argc, char **argv)
{
FILE *file = xfopen("/proc/modules", "r");