[Redhat-private-dev] Executable stack

Jakub Jelinek jakub at redhat.com
Sat Mar 5 12:08:24 UTC 2005


On Sat, Mar 05, 2005 at 12:14:52PM +0000, Mike Hearn wrote:
> On Fri, 04 Mar 2005 17:10:50 -0800, Roland McGrath wrote:
> > Once you've located the object files in question and found their sources,
> > there are two common cases that are producing this.  One is assembly code
> > (usually .s or .S files); bare assembly files get no marker, and no marker
> > defaults to meaning marked executable.  In the assembly code, just add:
> > 
> > 	.section .note.GNU-stack
> > 	.previous
> 
> This is what you have to do for inline assembly as well, yes?

No.  For inline assembly, the compiler assumes they don't need executable
stack, unless told otherwise.

	Jakub




More information about the devel mailing list