commit:     4d9363b9df5f800ecd13d5a55181a20707a3c243
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Sun May  3 20:11:06 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon May 11 01:10:19 2015 +0000
URL:        https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=4d9363b9

sys-devel/gcc: fix patch for powerpc

 sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch 
b/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch
index 6277824..1cc395f 100644
--- a/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch
+++ b/sys-devel/gcc/files/gcc-4.7.4-secure-plt.patch
@@ -1,4 +1,18 @@
 adapted from musl-cross gcc-patches
+diff -ur a/gcc/config.gcc b/gcc/config.gcc
+--- a/gcc/config.gcc   2013-10-03 02:52:23.000000000 -0200
++++ b/gcc/config.gcc   2015-05-03 22:05:10.855150177 -0200
+@@ -2091,6 +2091,10 @@
+           powerpc*-*-linux*paired*)
+               tm_file="${tm_file} rs6000/750cl.h" ;;
+       esac
++      case ${target} in
++       *-linux*-musl*)
++      enable_secureplt=yes ;;
++      esac
+       if test x${enable_secureplt} = xyes; then
+               tm_file="rs6000/secureplt.h ${tm_file}"
+       fi
 diff -r 6097333f2ab4 gcc/config/rs6000/secureplt.h
 --- a/gcc/config/rs6000/secureplt.h    Tue May 20 11:06:08 2014 -0400
 +++ b/gcc/config/rs6000/secureplt.h    Tue May 20 11:06:11 2014 -0400

Reply via email to