From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1431 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: noexecstack Date: Mon, 6 Aug 2012 05:37:42 -0400 Message-ID: <20120806093742.GA27715@brightrain.aerifal.cx> References: <20120805214624.GL544@brightrain.aerifal.cx> <20120806064306.GD30810@port70.net> 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 1344245835 26025 80.91.229.3 (6 Aug 2012 09:37:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 09:37:15 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1432-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 06 11:37:15 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 1SyJkR-00040Y-Hu for gllmg-musl@plane.gmane.org; Mon, 06 Aug 2012 11:37:15 +0200 Original-Received: (qmail 12269 invoked by uid 550); 6 Aug 2012 09:37:14 -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 12261 invoked from network); 6 Aug 2012 09:37:14 -0000 Content-Disposition: inline In-Reply-To: <20120806064306.GD30810@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1431 Archived-At: On Mon, Aug 06, 2012 at 08:43:06AM +0200, Szabolcs Nagy wrote: > * Rich Felker [2012-08-05 17:46:25 -0400]: > > Yes, but there should be a way to do it without putting ugly stuff > > like this in every single asm file. Why isn't there a command-line > > option to the assembler to do it? Or a way to do it globally with > > objcopy? > > > > 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? Rich