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 1PTbqL-0006nP-It for garchives@archives.gentoo.org; Fri, 17 Dec 2010 15:03:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A04FE051C; Fri, 17 Dec 2010 15:03:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1A9F1E051C for ; Fri, 17 Dec 2010 15:03:07 +0000 (UTC) Received: from localhost (vpn-137-048.rz.uni-augsburg.de [137.250.137.48]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tomka) by smtp.gentoo.org (Postfix) with ESMTPSA id 122FD1B406B for ; Fri, 17 Dec 2010 15:03:05 +0000 (UTC) Date: Fri, 17 Dec 2010 16:03:01 +0100 From: Thomas Kahle To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] sci-libs/mpir for the main tree Message-ID: <20101217150301.GG15522@denkmatte.Speedport_W_502V_Typ_A> References: <20101108234212.GN1906@denkmatte.mittag-leffler.se> <201012171422.34832.cschwan@students.uni-mainz.de> <20101217135503.GF15522@denkmatte.Speedport_W_502V_Typ_A> <201012171516.02337.cschwan@students.uni-mainz.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1Y7d0dPL928TPQbc" Content-Disposition: inline In-Reply-To: <201012171516.02337.cschwan@students.uni-mainz.de> X-Arbitrary-Number-Of-The-Day: 42 User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 301325c9-d111-4d33-8fed-cac4ba8e2e41 X-Archives-Hash: 6b05d5d75013e4cddb7f918bc827cdb2 --1Y7d0dPL928TPQbc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 15:16 Fri 17 Dec , Christopher Schwan wrote: > On Friday 17 December 2010 14:55:03 Thomas Kahle wrote: > > On 14:22 Fri 17 Dec , Christopher Schwan wrote: > > > Mpir's configure scripts looks like its adding "-Wl,-z,noexecstack" i= f it > > > detects a gcc+x86/amd64 configuration - so I guess noexecstack should > > > work out of the box. If it does not I would consider this as broken. > >=20 > > Yes, I saw that. The configure method fails directly, it just does *not* > > add the ldflag (at least when configure is run by portage). > >=20 > > I also tried to add "-Wl,-z,noexecstack" via append-ldflags, and it is > > indeed appended as visible in the compile output, but the exec stacks > > are still there and the QA warning comes up, so I guess we can consider > > this broken and stick with your solution of patching the asm (which sill > > works fine) >=20 > Did you read http://www.gentoo.org/proj/en/hardened/gnu-stack.xml ? The= =20 > document proposes a slightly different approach for assembler files: >=20 > append-flags -Wa,--noexecstack Read it again now. Indeed, "-Wa,--noexecstack" also works, but the page says that patching is the preferred approach... well at least if the patches land upstream at some point. I guess it just does not matter. Cheers, Thomas --=20 Thomas Kahle http://dev.gentoo.org/~tomka/ --1Y7d0dPL928TPQbc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iJwEAQEIAAYFAk0Le6UACgkQQYXt1pFHaaHbXAP9EitZWLHL4e//R9IY2OOlOTbP eEb3FMXInP/WzmxtweSYYJOWGQSfNanFgyNvzZ1U17dV6cYhHeErmLXETxR1fDUy bNGikBtaxMAfzVSpSOkNgszxmPaz12Wz68td4foO5EyyaFzWrn4NXNTGqMP6X7BT RlVQ/9SvILzGQDX9soA= =GaHr -----END PGP SIGNATURE----- --1Y7d0dPL928TPQbc--