changeset 35372:9d626905f38b

Add a version script to hide all symbols. This should give better startup performance at least and reduces the stripped binary size by about 500 kB for me. However it means that stripped binaries will give only completely useless backtraces since the compiler will no be able to find the name of even a single function.
author reimar
date Fri, 23 Nov 2012 20:53:54 +0000
parents af0fccca2dd7
children a0ec74dae6b9
files binary.ver configure
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/binary.ver	Fri Nov 23 20:53:54 2012 +0000
@@ -0,0 +1,3 @@
+MPLAYER_1 {
+  local: *;
+};
--- a/configure	Fri Nov 23 20:34:49 2012 +0000
+++ b/configure	Fri Nov 23 20:53:54 2012 +0000
@@ -7782,6 +7782,14 @@
   echores "no"
 fi
 
+echocheck "linker support for --version-script"
+if cflag_check "-Wl,--version-script,binary.ver" ; then
+  extra_ldflags="-Wl,--version-script,binary.ver $extra_ldflags"
+  echores "yes"
+else
+  echores "no"
+fi
+
 
 # Dynamic linking flags
 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)