[MPlayer-cvslog] r35466 - in trunk: binary.ver configure

reimar subversion at mplayerhq.hu
Fri Nov 23 21:53:54 CET 2012


Author: reimar
Date: Fri Nov 23 21:53:54 2012
New Revision: 35466

Log:
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.

Added:
   trunk/binary.ver
Modified:
   trunk/configure

Added: trunk/binary.ver
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/binary.ver	Fri Nov 23 21:53:54 2012	(r35466)
@@ -0,0 +1,3 @@
+MPLAYER_1 {
+  local: *;
+};

Modified: trunk/configure
==============================================================================
--- trunk/configure	Fri Nov 23 21:34:49 2012	(r35465)
+++ trunk/configure	Fri Nov 23 21:53:54 2012	(r35466)
@@ -7782,6 +7782,14 @@ else
   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)


More information about the MPlayer-cvslog mailing list