# HG changeset patch # User Shawn Walker # Date 1374786334 25200 # Node ID 5f95f755660033fdf11119521e979cb842f08c84 # Parent 1fedef581c165894a0a43e07fc65d44205d8cb4e 16803687 libpython exports protected data - compromises COPY relocations diff -r 1fedef581c16 -r 5f95f7556600 components/python/python26/patches/Python26-24-symbolic.patch --- a/components/python/python26/patches/Python26-24-symbolic.patch Tue Jul 30 14:22:22 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -The use of -Bsymbolic here is not required for a profile-guided build, but -provides noticeable performance improvements for Python applications. This -should be an acceptable change as runtime interposition on the Python -interpreter library is generally undesirable. ---- Python-2.6.4/configure.in.old Wed Nov 2 15:49:33 2011 -+++ Python-2.6.4/configure.in Wed Nov 2 15:58:07 2011 -@@ -1712,8 +1712,8 @@ - IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; - SunOS/5*) - if test "$GCC" = "yes" -- then LDSHARED='$(CC) -shared' -- else LDSHARED='$(CC) -G'; -+ then LDSHARED='$(CC) -shared -Wl,-Bsymbolic' -+ else LDSHARED='$(CC) -G -Wl,-Bsymbolic'; - fi ;; - hp*|HP*) - if test "$GCC" = "yes" -@@ -1882,7 +1882,7 @@ - *gcc*) - if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null - then -- LINKFORSHARED="-Xlinker --export-dynamic" -+ LINKFORSHARED="-Xlinker --export-dynamic -Xlinker -Bsymbolic" - fi;; - esac;; - CYGWIN*) diff -r 1fedef581c16 -r 5f95f7556600 components/python/python27/patches/11-symbolic.patch --- a/components/python/python27/patches/11-symbolic.patch Tue Jul 30 14:22:22 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -The use of -Bsymbolic here is not required for a profile-guided build, but -provides noticeable performance improvements for Python applications. This -should be an acceptable change as runtime interposition on the Python -interpreter library is generally undesirable. ---- Python-2.7.1/configure.in.orig 2011-11-07 10:05:49.959873160 -0800 -+++ Python-2.7.1/configure.in 2011-11-07 10:05:38.932222244 -0800 -@@ -1812,11 +1812,11 @@ - IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; - SunOS/5*) - if test "$GCC" = "yes" ; then -- LDSHARED='$(CC) -shared' -- LDCXXSHARED='$(CXX) -shared' -+ LDSHARED='$(CC) -shared -Wl,-Bsymbolic' -+ LDCXXSHARED='$(CXX) -shared -Wl,-Bsymbolic' - else -- LDSHARED='$(CC) -G' -- LDCXXSHARED='$(CXX) -G' -+ LDSHARED='$(CC) -G -Wl,-Bsymbolic' -+ LDCXXSHARED='$(CXX) -G -Wl,-Bsymbolic' - fi ;; - hp*|HP*) - if test "$GCC" = "yes" ; then -@@ -2008,7 +2008,7 @@ - *gcc*) - if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null - then -- LINKFORSHARED="-Xlinker --export-dynamic" -+ LINKFORSHARED="-Xlinker --export-dynamic -Xlinker -Bsymbolic" - fi;; - esac;; - CYGWIN*)