From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1432 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: noexecstack Date: Mon, 6 Aug 2012 13:19:19 +0200 Message-ID: <20120806111918.GE30810@port70.net> References: <20120805214624.GL544@brightrain.aerifal.cx> <20120806064306.GD30810@port70.net> <20120806093742.GA27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1344251974 9056 80.91.229.3 (6 Aug 2012 11:19:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 11:19:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1433-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 06 13:19:35 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SyLLP-00040a-Rs for gllmg-musl@plane.gmane.org; Mon, 06 Aug 2012 13:19:31 +0200 Original-Received: (qmail 21679 invoked by uid 550); 6 Aug 2012 11:19:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21671 invoked from network); 6 Aug 2012 11:19:30 -0000 Content-Disposition: inline In-Reply-To: <20120806093742.GA27715@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1432 Archived-At: * Rich Felker [2012-08-06 05:37:42 -0400]: > > ld -z noexecstack > > This should work for libc.so. Is there a way to do it for all the .o > files in libc.a without having to add the option to every application, > though? > it seems gnu as has an undocumented --noexecstack flag for this gcc -Wa,--noexecstack -c foo.s adds the .notes.GNU-stack section