Re: [PATCH resend] make the stack non-executable on x86_64 too
Michael Militzer <[email protected]> Thu, 17 Sep 2009 09:10:02 +0200
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Message-ID | <[email protected]> |
Quoting Michal Schmidt <[email protected]>: > 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. Ok, good. Your patch has been applied. Thanks. Regards, Michael