From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rdp7T-0001Un-TE for garchives@archives.gentoo.org; Thu, 22 Dec 2011 20:20:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FEBA21C269; Thu, 22 Dec 2011 20:19:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CF15D21C269 for ; Thu, 22 Dec 2011 20:19:55 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D25BB1B4044 for ; Thu, 22 Dec 2011 20:19:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 49DFC80042 for ; Thu, 22 Dec 2011 20:19:54 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: Subject: [gentoo-commits] proj/hardened-gccpatchset:master commit in: gcc-4.5.0/piepatch/, upstream/ X-VCS-Repository: proj/hardened-gccpatchset X-VCS-Files: gcc-4.5.0/piepatch/12_all_gcc45_Makefile.in.patch gcc-4.5.0/piepatch/README.Changelog gcc-4.5.0/piepatch/README.history upstream/configure.ac.patch X-VCS-Directories: gcc-4.5.0/piepatch/ upstream/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: fb1940a404ba2fdb87572b754815d39fa14a2c96 Date: Thu, 22 Dec 2011 20:19:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 47d916c6-1f5a-4fd5-8f03-8750c41eafa3 X-Archives-Hash: 63d2099a3823c6db02d886e7e653201b commit: fb1940a404ba2fdb87572b754815d39fa14a2c96 Author: Magnus Granberg gentoo org> AuthorDate: Thu Dec 22 20:18:52 2011 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Thu Dec 22 20:18:52 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-gccp= atchset.git;a=3Dcommit;h=3Dfb1940a4 update it to 0.4.7 fix 394821 --- gcc-4.5.0/piepatch/12_all_gcc45_Makefile.in.patch | 18 ++++++- gcc-4.5.0/piepatch/README.Changelog | 6 ++ gcc-4.5.0/piepatch/README.history | 62 ++++++++++++---= ------ upstream/configure.ac.patch | 2 +- 4 files changed, 59 insertions(+), 29 deletions(-) diff --git a/gcc-4.5.0/piepatch/12_all_gcc45_Makefile.in.patch b/gcc-4.5.= 0/piepatch/12_all_gcc45_Makefile.in.patch index a1f1cd1..c3e18bd 100644 --- a/gcc-4.5.0/piepatch/12_all_gcc45_Makefile.in.patch +++ b/gcc-4.5.0/piepatch/12_all_gcc45_Makefile.in.patch @@ -1,4 +1,4 @@ -2011-12-06 Magnus Granberg Anthony G. Basile +2011-12-21 Magnus Granberg Anthony G. Basile =20 * Makefile.in We add -fno-stack-protector to BOOT_CFLAGS, LIBCFLAGS an= d LIBCXXFLAGS if enable_esp yes. * gcc/Makefile.in Add -fno-PIE and -fno-stack-protector. @@ -99,6 +99,22 @@ # List of extra object files that should be compiled and linked with # compiler proper (cc1, cc1obj, cc1plus). EXTRA_OBJS =3D @extra_objs@ +@@ -1002,12 +1010,12 @@ +=20 + # This is the variable actually used when we compile. If you change thi= s, + # you probably want to update BUILD_CFLAGS in configure.ac +-ALL_CFLAGS =3D $(T_CFLAGS) \ ++ALL_CFLAGS =3D $(ESP_NOPIE_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) \ + $(CFLAGS) $(INTERNAL_CFLAGS) $(COVERAGE_FLAGS) $(WARN_CFLAGS) @DEFS@ +=20 + # The C++ version. +-ALL_CXXFLAGS =3D $(T_CFLAGS) $(CXXFLAGS) $(INTERNAL_CFLAGS) \ +- $(COVERAGE_FLAGS) $(WARN_CXXFLAGS) @DEFS@ ++ALL_CXXFLAGS =3D $(ESP_NOPIE_CFLAGS) $(T_CFLAGS) $(CXXFLAGS) \ ++ $(INTERNAL_CFLAGS) $(COVERAGE_FLAGS) $(WARN_CXXFLAGS) @DEFS@ +=20 + # Likewise. Put INCLUDES at the beginning: this way, if some autoconf = macro + # puts -I options in CPPFLAGS, our include files in the srcdir will alw= ays @@ -1856,9 +1873,10 @@ echo LIBGCC_SYNC =3D '$(LIBGCC_SYNC)' >> tmp-libgcc.mvars echo LIBGCC_SYNC_CFLAGS =3D '$(LIBGCC_SYNC_CFLAGS)' >> tmp-libgcc.mvar= s diff --git a/gcc-4.5.0/piepatch/README.Changelog b/gcc-4.5.0/piepatch/REA= DME.Changelog index 53b7b44..aaecc31 100644 --- a/gcc-4.5.0/piepatch/README.Changelog +++ b/gcc-4.5.0/piepatch/README.Changelog @@ -1,3 +1,9 @@ +0.4.7 Magnus Granberg + + #394821 #380823 (ported from 4.6) + * gcc/Makefile.in added ESP_NOPIE_CFLAGS to ALL_CXXFLAGS + and ALL_CFLAGS + 0.4.6 Magnus Granberg =20 #393321 diff --git a/gcc-4.5.0/piepatch/README.history b/gcc-4.5.0/piepatch/READM= E.history index a226a3b..aa5eae5 100644 --- a/gcc-4.5.0/piepatch/README.history +++ b/gcc-4.5.0/piepatch/README.history @@ -1,4 +1,7 @@ -0.4.6 06-12-2011 +0.4.7 21 Dec 2011 + U 12_all_gcc45_Makefile.in.patch + +0.4.6 06 Dec 2011 + 35_all_gcc45_config_crtbeginp.patch - 35_all_gcc44_config_crtbegints.patch U 10_all_gcc45_configure.patch @@ -7,25 +10,30 @@ - 11_all_gcc44_config.in.patch + 30_all_gcc45_esp.h.patch - 30_all_gcc44_esp.h.patch -0.4.5 18-06-2010 + +0.4.5 18 Jun 2010 U 35_all_gcc44_config_crtbegints.patch -0.4.4 26-05-2010 + +0.4.4 26 May 2010 U 30_all_gcc44_esp.h.patch -0.4.3 26-05-2010 + +0.4.3 26 May 2010 U 20_all_gcc44_gcc.c.patch U 30_all_gcc44_esp.h.patch -0.4.2 24-05-2010 + +0.4.2 24 May 2010 U 10_all_gcc44_configure.patch U 12_all_gcc44_Makefile.in.patch U 11_all_gcc44_config.in.patch U 30_all_gcc44_esp.h.patch -0.4.1 29-04-2010 + +0.4.1 29 Apr 2010 U 10_all_gcc45_configure.patch U 12_all_gcc45_Makefile.in.patch U 11_all_gcc44_config.in.patch U 30_all_gcc44_esp.h.patch =20 -0.4.0 19-04-2010 +0.4.0 19 Apr 2010 U 10_all_gcc45_configure.patch U 12_all_gcc45_Makefile.in.patch U 11_all_gcc44_config.in.patch @@ -33,23 +41,23 @@ - 30_all_gcc44_espf.h.patch + 30_all_gcc44_esp.h.patch =20 -0.3.9 14-04-2010 +0.3.9 14 Apr 2010 U 10_all_gcc45_configure.patch - 50_all_gcc44_no_ssp_tls_uclibc.patch U 33_all_gcc45_config_rs6000_linux64.h.patch =20 -0.3.8 10-04-2010 +0.3.8 10 Apr 2010 10_all_gcc44_configure.patch 11_all_gcc44_config.in.patch 20_all_gcc44_gcc.c.patch 30_all_gcc44_espf.h.patch =20 -0.3.7 10-02-2010 +0.3.7 10 Feb 2010 20_all_gcc44_gcc.c.patch 30_all_gcc44_espf.h.patch 10_all_gcc44_configure.patch =20 -0.3.6 23-12-2009 +0.3.6 23 Dec 2009 - 10_all_gcc44_configure.patch + 10_all_gcc44_configure.patch - 30_all_gcc44_espf.h.patch @@ -61,7 +69,7 @@ - README + README =20 -0.3.5 24-09-2009 +0.3.5 24 Sep 2009 - 30_all_gcc44_espf.h.patch + 30_all_gcc44_espf.h.patch - 35_all_gcc44_config_crtbegints.patch @@ -73,7 +81,7 @@ + README.history + README.Gentoo.patches =20 -0.3.4 11-09-2009 +0.3.4 11 Sep 2009 - 10_all_gcc44_configure.patch + 10_all_gcc44_configure.patch - 11_all_gcc44_config.in.patch @@ -94,11 +102,11 @@ - README + README =09 -0.3.3 14-08-2009 +0.3.3 14 Aug 2009 - 23_all_gcc44_opts.c.patch + 23_all_gcc44_opts.c.patch =20 -0.3.2 09-08-2009 +0.3.2 09 Aug 2009 + 50_all_gcc44_no_ssp_tls_uclibc.patch + README.Changelog + README.history @@ -107,11 +115,11 @@ - 30_all_gcc44-espf.h.patch + 30_all_gcc44-espf.h.patch =20 -0.3.1 23-07-2009 +0.3.1 23 Jul 2009 - 10_all_gcc44_configure.patch + 10_all_gcc44_configure.patch =20 -0.3.0 23-07-2009 +0.3.0 23 Jul 2009 - 10_all_gcc44_configure.patch + 10_all_gcc44_configure.patch - 11_all_gcc44_config.in.patch @@ -127,7 +135,7 @@ - 30_all_gcc44-espf.h.patch + 30_all_gcc44-espf.h.patch =20 -0.2.9 14-06-2009 +0.2.9 14 Jun 2009 - 12_all_gcc44_Makefile.in.patch + 12_all_gcc44_Makefile.in.patch - 30_all_gcc44-espf.h.patch @@ -135,7 +143,7 @@ - 50_all_gcc44_gentoo_v20090612.2.patch + 50_all_gcc44_gentoo_v20090614.1.patch =20 -0.2.8 12-06-2009 +0.2.8 12 Jun 2009 - 10_all_gcc44_configure.patch + 10_all_gcc44_configure.patch - 11_all_gcc44_config.in.patch @@ -147,7 +155,7 @@ + 30_all_gcc44-espf.h.patch + 50_all_gcc44_gentoo_v20090612.2.patch =20 -0.2.7 29-05-2009 +0.2.7 29 May 2009 - 11_all_gcc44_config.in.patch + 11_all_gcc44_config.in.patch - 12_all_gcc44_Makefile.in.patch @@ -159,14 +167,14 @@ + 25_all_gcc44-espf.h.patch - 30_all_gcc44-config-defaul-linux.patch =20 -0.2.6 28-05-2009 +0.2.6 28 May 2009 + 22_all_gcc44-toplev.c.patch - 25_all_gcc44-espf.h.patch + 25_all_gcc44-espf.h.patch - 30_all_gcc44-config-defaul-linux.patch + 30_all_gcc44-config-defaul-linux.patch =20 -0.2.5 27-05-2009 +0.2.5 27 May 2009 - 10_all_gcc44_configure.patch + 10_all_gcc44_configure.patch - 12_all_gcc44_Makefile.in.patch @@ -179,17 +187,17 @@ + 30_all_gcc44-config-defaul-linux.patch - 40_all_gcc44-gentoo.patch =20 -0.2.4 08-05-2009 +0.2.4 08 May 2009 - 12_all_gcc44_Makefile.in.patch + 12_all_gcc44_Makefile.in.patch =20 -0.2.3 08-05-2009 +0.2.3 08 May 2009 - 20_all_gcc44_gcc.c.patch + 20_all_gcc44_gcc.c.patch - 40_all_gcc44-gentoo.patch + 40_all_gcc44-gentoo.patch =20 -0.2.2 04-05-2009 +0.2.2 04 May 2009 + 10_all_gcc44_configure.patch + 11_all_gcc44_config.in.patch + 12_all_gcc44_Makefile.in.patch @@ -211,7 +219,7 @@ - 23_all_gcc44-gcc_varasm.c.patch - 30_all_gcc44-add-crt-start-endfiles-linux.patch =20 -0.2.1 28-04-2009 +0.2.1 28 Apr 2009 + 01_all_gcc44-configure.patch + 10_all_gcc44-gcc_configure.patch + 11_all_gcc44-gcc_config.in.patch @@ -232,7 +240,7 @@ - 20-all_gcc4.4-default-crt-start-endfile.patch - 30-all_gcc4.4-crtbeginTS-fno-PIE.patch =20 -0.1.0 16.04.2009 +0.1.0 16 Apr 2009 + 00_all_gcc4.4-cvs-incompat.patch + 05_all_gcc4.4-compile-no-ssp.patch + 10_all_gcc4.4-hardened-minispecs-support.patch diff --git a/upstream/configure.ac.patch b/upstream/configure.ac.patch index 396cd0e..b08edcc 100644 --- a/upstream/configure.ac.patch +++ b/upstream/configure.ac.patch @@ -19,7 +19,7 @@ + Linux targets supported x86_64.])], +[ + case $target in -+ x86_64*-*-linux*) ++ i?86*-*-linux* | x86_64*-*-linux* | x86_x32*-*-linux | powerpc-*-li= nux* | powerpc64-*-linux* | arm*-*-linux* | ia64-*-linux*) + enable_espf=3Dyes + ;; + *)