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 /include/applets.h | |
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 'include/applets.h')
-rw-r--r-- | include/applets.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/applets.h b/include/applets.h index ac3f65f..ceab003 100644 --- a/include/applets.h +++ b/include/applets.h @@ -24,11 +24,11 @@ s - suid type: */ #if defined(PROTOTYPES) -# define APPLET(name,l,s) int name##_main(int argc, char **argv); -# define APPLET_NOUSAGE(name,main,l,s) int main##_main(int argc, char **argv); -# define APPLET_ODDNAME(name,main,l,s,name2) int main##_main(int argc, char **argv); -# define APPLET_NOEXEC(name,main,l,s,name2) int main##_main(int argc, char **argv); -# define APPLET_NOFORK(name,main,l,s,name2) int main##_main(int argc, char **argv); +# define APPLET(name,l,s) int name##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +# define APPLET_NOUSAGE(name,main,l,s) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +# define APPLET_ODDNAME(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +# define APPLET_NOEXEC(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +# define APPLET_NOFORK(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; #elif defined(NAME_MAIN_CNAME) # define APPLET(name,l,s) name name##_main name |