.note.GNU-stack section syntax

Peter Johnson peter at tortall.net
Fri Dec 29 18:51:06 PST 2006


On Mon, 18 Dec 2006, Charles Bailey wrote:
> In asm files designed to make elf object files I've come across use of a
> section such as:
>
> section .note.GNU-stack
>
> I believe it is used to prevent an executable stack.
>
> This syntax works for nasm but not for yasm, for which this works:

Added support for the non-quoted syntax in Yasm in r1723.  I'm keeping the 
quoted behavior in Yasm (not putting the quotes directly into the section 
name) as it's far more logical and I can't think of a case when it's 
really necessary to have quotes in the section name in the object file. 
Also it maintains backward compatibility.

Thanks,
Peter


More information about the yasm-devel mailing list