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 1QF2g6-0004wJ-12 for garchives@archives.gentoo.org; Wed, 27 Apr 2011 11:13:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FA011C008; Wed, 27 Apr 2011 11:12:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 327981C008 for ; Wed, 27 Apr 2011 11:12:59 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A67991B405D for ; Wed, 27 Apr 2011 11:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 1280E80505 for ; Wed, 27 Apr 2011 11:12:58 +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: upstream/ X-VCS-Repository: proj/hardened-gccpatchset X-VCS-Files: upstream/configure.ac.patch X-VCS-Directories: upstream/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: de738d984c6dcabfd2ef044227333474a3115738 Date: Wed, 27 Apr 2011 11:12:58 +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: X-Archives-Hash: a4fdc518aefceaffa1b315026fda9391 commit: de738d984c6dcabfd2ef044227333474a3115738 Author: Magnus Granberg gentoo org> AuthorDate: Wed Apr 27 11:12:41 2011 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Wed Apr 27 11:12:41 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-gccp= atchset.git;a=3Dcommit;h=3Dde738d98 Added the configure.ac patch for upstream fist rev --- upstream/configure.ac.patch | 43 +++++++++++++++++++++++++++++++++++++= ++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/upstream/configure.ac.patch b/upstream/configure.ac.patch new file mode 100644 index 0000000..cfee97f --- /dev/null +++ b/upstream/configure.ac.patch @@ -0,0 +1,43 @@ +2011-04-27 Magnus Granberg + + * configure Add --enable-espf. Add -fno-stack-protector + to stage1_cflags. +--- a/configure.ac 2011-04-18 23:27:00.000000000 +0200 ++++ b/configure.ac 2011-04-27 12:47:11.351473240 +0200 +@@ -419,6 +419,25 @@ + noconfigdirs=3D"$noconfigdirs gnattools" + fi +=20 ++# Check whether --enable-espf was given and target have the support. ++AC_ARG_ENABLE([espf], ++[AS_HELP_STRING([--enable-espf], ++ [Enable Stack protector, Position independent executable and ++ Fortify_sources as default if we have suppot for it when compiling ++ and link with -z relro and -z now as default. ++ Linux targets supported x86_64.])], ++[ ++ case $target in ++ x86_64*-*-linux*) ++ enable_espf=3Dyes ++ ;; ++ *) ++ AC_MSG_WARN([*** --enable-espf is not supported on this $target t= arget.]) ++ ;; ++ esac ++]) ++AC_SUBST([enable_espf]) ++ + AC_ARG_ENABLE(libssp, + [AS_HELP_STRING([--enable-libssp], [build libssp directory])], + ENABLE_LIBSSP=3D$enableval, +@@ -3152,6 +3171,10 @@ + esac ;; + esac +=20 ++# Disable -fstack-protector on stage1 ++if test x$enable_espf =3D xyes; then ++ stage1_cflags=3D"$stage1_cflags -fno-stack-protector" ++fi + # This is aimed to mimic bootstrap with a non-GCC compiler to catch pro= blems. + if test "$GCC" =3D yes -a "$ENABLE_BUILD_WITH_CXX" !=3D yes; then + saved_CFLAGS=3D"$CFLAGS"