Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120806113230.GB27715@brightrain.aerifal.cx>
Date: Mon, 6 Aug 2012 07:32:30 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: noexecstack

On Mon, Aug 06, 2012 at 01:19:19PM +0200, Szabolcs Nagy wrote:
> * Rich Felker <dalias@...ifal.cx> [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

So this seems to be the solution. I suspect it will need a configure
check for the option being supported. Any other caveats?

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.