On Sun, 7 Aug 2005, Alexei Sheplyakov wrote: [...] > Here is a trivial patch which adds necessary marker (sorry, x86 only): > > diff -Nru cln-1.1.9-orig/src/base/digitseq/cl_asm_i386_.cc > cln-1.1.9/src/base/digitseq/cl_asm_i386_.cc > --- cln-1.1.9-orig/src/base/digitseq/cl_asm_i386_.cc 2000-01-28 > 14:37:28.000000000 +0300 > +++ cln-1.1.9/src/base/digitseq/cl_asm_i386_.cc 2005-08-07 > 13:50:02.000000000 +0400 > @@ -2068,3 +2068,7 @@ > popl %esi // %esi zur??ck > ret > > + // We don't need executable > stack, so we have to add this: > + .section .note.GNU-stack,"",@progbits > > This patch works for me (x86/Linux), but I can't say if it works on > other platforms (e.g., with non-GNU assemblers/linkers)
Thanks for your bug report. I am still pondering how to make this a little bit more generic. Maybe it's best to pass --noexecstack to gas indirectly via the -Wa,--noexecstack compiler flag? I would need to determine whether gas is new enough to support --noexecstack, though. Does this appear to be the right way? If so: Has anybody bothered writing an autconf macro for this? -richy. -- .''`. Richard B. Kreckel : :' : <[EMAIL PROTECTED]> `. `' <[EMAIL PROTECTED]> `- <http://www.ginac.de/~kreckel/> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]