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 --- scripts/trylink | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/trylink') diff --git a/scripts/trylink b/scripts/trylink index 6292dc659..25629aa1a 100755 --- a/scripts/trylink +++ b/scripts/trylink @@ -26,7 +26,7 @@ debug=false # --enable-new-dtags ? # -z,combreloc ? # -soname="libbusybox.so.$BB_VER" -# --undefined=libbusybox_main Seed name to start pulling from +# --undefined=lbb_main Seed name to start pulling from # (otherwise we'll need --whole-archive) # -static Not used, but may be useful! manpage: # "... This option can be used with -shared. @@ -172,7 +172,7 @@ if test "$CONFIG_BUILD_LIBBUSYBOX" = y; then -Wl,--enable-new-dtags \ -Wl,-z,combreloc \ -Wl,-soname="libbusybox.so.$BB_VER" \ - -Wl,--undefined=libbusybox_main \ + -Wl,--undefined=lbb_main \ -Wl,--sort-common \ -Wl,--sort-section -Wl,alignment \ -Wl,--start-group $A_FILES -Wl,--end-group \ @@ -220,14 +220,14 @@ if test "$CONFIG_FEATURE_INDIVIDUAL" = y; then while read name main junk; do echo "\ -void bbox_prepare_main(char **argv); +void lbb_prepare(char **argv); int $main(int argc, char **argv); const char *applet_name = \"$name\"; int main(int argc, char **argv) { - bbox_prepare_main(argv); + lbb_prepare(argv); return $main(argc, argv); } " >"$sharedlib_dir/applet.c" -- cgit v1.2.3