Re: [PATCH resend] make the stack non-executable on x86_64 too

Michal Schmidt <[email protected]> Wed, 16 Sep 2009 17:29:17 +0200
Newsgroups gmane.comp.video.xvid.devel
Organization Red Hat
Message-ID <20090916172917.6ca30ffb@leela>
Dne Wed, 16 Sep 2009 14:31:29 +0200 [email protected] napsal(a):
> On 16 Sep 2009 at 13:37, Michal Schmidt wrote:
> > Another bug is that the section name is quoted and the quotes are
> > interpreted as a part of the name (this can be checked using
> > readelf -S on the object files). ld then can't find
> > the .note.GNU-stack sections and assumes executable stack.
> 
> careful, IIRC, nasm and yasm treat quotes differently and in an
> incompatible way, so you can produce the correct section name only
> under one or the other...

Alright, I wasn't aware of that. I tested with nasm.
I have now verified that with yasm 0.8.0 the sections are named as
expected and the resulting library does not require executable stack.

Michal