[PATCH] PT_GNU_STACK

Nick Clifton nickc@redhat.com
Thu May 29 16:58:00 GMT 2003


Hi Andrew,

> Wouldn't two note sections work better:
>
> 	if (.note.GNU-stack.rwx)
> 	  stack read-write-executable
> 	else if (.note.GNU-stack.rw)
> 	  stack read-write
> 	else
> 	  stack $KERNEL_CONFIG_VARIABLE
>
> gcc generating one or the other (all empty).

What benefit does this have over having just one note section and
checking the section's attributes ?


Cheers
        Nick
        



More information about the Binutils mailing list