diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-11 10:05:36 +0000 |
commit | 9b49a5ed8551e46892af3f676e5d96d21b540e3c (patch) | |
tree | 3d177ef7f3f5e8338690718c86012203ef29a7da /scripts | |
parent | 8d82cf72c99a8ab8bdbb0b179a1f1135a004c47a (diff) | |
download | 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 'scripts')
-rwxr-xr-x | scripts/trylink | 8 |
1 files changed, 4 insertions, 4 deletions
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" |