From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-158890-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 9998F13838B
	for <garchives@archives.gentoo.org>; Tue, 23 Sep 2014 11:52:21 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 771ACE0AAC;
	Tue, 23 Sep 2014 11:52:16 +0000 (UTC)
Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 37A33E09D5
	for <gentoo-user@lists.gentoo.org>; Tue, 23 Sep 2014 11:52:15 +0000 (UTC)
Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69])
          by outpost.zedat.fu-berlin.de (Exim 4.82)
          for gentoo-user@lists.gentoo.org with esmtp
          (envelope-from <h.v.bruinehsen@fu-berlin.de>)
          id <1XWOdh-002Wsk-2l>; Tue, 23 Sep 2014 13:52:13 +0200
Received: from dslb-188-103-188-186.188.103.pools.vodafone-ip.de ([188.103.188.186] helo=TranscendTheRubicon.alshain.ring0)
          by inpost2.zedat.fu-berlin.de (Exim 4.82)
          for gentoo-user@lists.gentoo.org with esmtpsa
          (envelope-from <h.v.bruinehsen@fu-berlin.de>)
          id <1XWOdg-002qZ1-U4>; Tue, 23 Sep 2014 13:52:13 +0200
Date: Tue, 23 Sep 2014 13:52:05 +0200
From: Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] "stack-protector-strong" option results in gcc
 error
Message-ID: <20140923115204.GA23337@TranscendTheRubicon.alshain.ring0>
References: <20140923024941.GA2848@waltdnes.org>
 <CAJ1xhMVPaWUnam+ZPp-BBrw=sYSu_BXN_NxdmuMB8ON83o75tg@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM"
Content-Disposition: inline
In-Reply-To: <CAJ1xhMVPaWUnam+ZPp-BBrw=sYSu_BXN_NxdmuMB8ON83o75tg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Originating-IP: 188.103.188.186
X-ZEDAT-Hint: A
X-Archives-Salt: af26c01c-f6c6-4f42-ac52-ddfc10adb2b5
X-Archives-Hash: e088962db17f7b2686cdb42393673f88


--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Sep 23, 2014 at 09:16:42AM +0300, Alexander Kapshuk wrote:
> On Tue, Sep 23, 2014 at 5:49 AM, Walter Dnes <waltdnes@waltdnes.org> wrot=
e:
> >   CHK     include/generated/utsrelease.h
> >   UPD     include/generated/utsrelease.h
> >   CC      kernel/bounds.s
> > gcc: error: unrecognized command line option '-fstack-protector-strong'
> > make[1]: *** [kernel/bounds.s] Error 1
> > make: *** [prepare0] Error 2
> >
> >   I switched stack-protector to "regular", and it built OK.  I rebooted
> > into it, and it works OK.
> >
> >   My gcc version data...
> >
> > [d531][root][/usr/src/linux] gcc --version
> > gcc (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3
> > Copyright (C) 2012 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is=
 NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP=
OSE.
> >
> >   My install is 32-bit
> >
> > [d531][waltdnes][~] uname -a
> > Linux d531 3.14.16-gentoo #1 SMP Mon Sep 22 20:43:33 EDT 2014 i686 Inte=
l(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz GenuineIntel GNU/Linux
> >
> > --
> > Walter Dnes <waltdnes@waltdnes.org>
> > I don't run "desktop environments"; I run useful applications
> >
>=20
> Looks like support for '-fstack-protector-strong' was implemented in
> more recent versions of gcc. The the URL below for details:
>=20
> https://securityblog.redhat.com/tag/stack-protector/

'-fstack-protector-strong' is supported as of gcc-4.9.x - unless you upgrad=
e,
you'll forced to use the regular one.

If you want more information on the option take a look here:
http://www.outflux.net/blog/archives/2014/01/27/fstack-protector-strong/

I think it's not even that unlikely that you don't even want the strong
version.

WKR
Hinnerk

--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUIV7kAAoJEJwwOFaNFkYcfNcH/2QUB/wwz81YUBXxgK3yCuZS
DGUxGnzsYO2NmiNZaslqP8ffUvweRS25hpPjUnhOK3KCmgs9+eM6vibIGIpFc+gv
AomjGrTtcWflxORlD58jcWM/azYkRADYh89xxd+mVjIbSReGzALQiJtaksK25OC/
YVui/wx3UGnzUUbUYbseirNCVjQtLBhPAGF/iSLcm71YEzbhEsJPjGJB1oXlZhup
RnT/OICW9sRTPtwn6ep3U33UDAg8btfZ4bWcViZ7rkgv8E8O7jM/FAZojVzs+pyB
elSixoFJw955mtxiJRjUsEy709YSAgKhNvU2fSogaImuTOFY5lzHVG3lFrvg0k4=
=vzFA
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--