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 1PTb6w-00016O-Bi for garchives@archives.gentoo.org; Fri, 17 Dec 2010 14:16:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 074FCE05F5; Fri, 17 Dec 2010 14:16:04 +0000 (UTC) Received: from mailgate-02.zdv.uni-mainz.de (mailgate-02.zdv.Uni-Mainz.DE [134.93.178.246]) by pigeon.gentoo.org (Postfix) with ESMTP id 9AC90E05F5 for ; Fri, 17 Dec 2010 14:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-mainz.de; i=cschwan@students.uni-mainz.de; q=dns/txt; s=ironport; t=1292595364; x=1324131364; h=from:to:subject:date:references:in-reply-to:mime-version: content-transfer-encoding:message-id; z=From:=20Christopher=20Schwan=20|To:=20|Subject: =20Re:=20[gentoo-science]=20sci-libs/mpir=20for=20the=20m ain=20tree|Date:=20Fri,=2017=20Dec=202010=2015:16:02=20+0 100|References:=20<20101108234212.GN1906@denkmatte.mittag -leffler.se>=20<201012171422.34832.cschwan@students.uni-m ainz.de>=20<20101217135503.GF15522@denkmatte.Speedport_W_ 502V_Typ_A>|In-Reply-To:=20<20101217135503.GF15522@denkma tte.Speedport_W_502V_Typ_A>|MIME-Version:=201.0 |Content-Transfer-Encoding:=207bit|Message-ID:=20<2010121 71516.02337.cschwan@students.uni-mainz.de>; bh=q3MwsnVoVbE8UKWhar7SzsFGW6UilW8z86W4mTk4C0k=; b=EhfVOuyJ9W/wE3LKXtOVMln2ATggWW/IPrXQ0ycdz48LTTJWNSHVhDKx 9w6bMI5KJ9cZ84EO349VRlQda6B9b0SjPCwPEPeG0kZzTmezLzI9UdDjU QSo66aouRBNFeVox1ntClAWoSnV67l3Veq7TGzcqaXVel5fcRhXUiDPjf Y=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AucFAOf/Ck0KXgZQ/2dsb2JhbACWF48Jw2SFSgSOHQ Received: from e14hub-01.zdv.uni-mainz.de ([10.94.6.80]) by mailgate-02.zdv.uni-mainz.de with ESMTP; 17 Dec 2010 15:16:03 +0100 Received: from gnuke-notebook.localnet (84.129.244.11) by mail.uni-mainz.de (10.94.6.82) with Microsoft SMTP Server (TLS) id 14.1.218.12; Fri, 17 Dec 2010 15:16:03 +0100 From: Christopher Schwan To: Subject: Re: [gentoo-science] sci-libs/mpir for the main tree Date: Fri, 17 Dec 2010 15:16:02 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r5; KDE/4.5.4; i686; ; ) References: <20101108234212.GN1906@denkmatte.mittag-leffler.se> <201012171422.34832.cschwan@students.uni-mainz.de> <20101217135503.GF15522@denkmatte.Speedport_W_502V_Typ_A> In-Reply-To: <20101217135503.GF15522@denkmatte.Speedport_W_502V_Typ_A> 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: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-ID: <201012171516.02337.cschwan@students.uni-mainz.de> X-Originating-IP: [84.129.244.11] X-Archives-Salt: 75fb90d1-3f57-4886-ad11-eeab33d89012 X-Archives-Hash: c6494fd911288702ab909d1c29dc9b4a 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" if 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. > > Yes, I saw that. The configure method fails directly, it just does *not* > add the ldflag (at least when configure is run by portage). > > 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) Did you read http://www.gentoo.org/proj/en/hardened/gnu-stack.xml ? The document proposes a slightly different approach for assembler files: append-flags -Wa,--noexecstack Which tells the assembler to use --nostack (instead of telling the linker to use -z,noexecstack). > > Cheers, > Thomas Cheers, Christopher