[PATCH] PT_GNU_STACK
H. J. Lu
hjl@lucon.org
Thu May 29 17:06:00 GMT 2003
On Thu, May 29, 2003 at 05:12:57PM +0100, Nick Clifton wrote:
> 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 ?
>
Please noted that. I'd like to propose a generic note section to
describe unique properties of a relocatable file:
http://sources.redhat.com/ml/binutils/2003-05/msg00750.html
The executable stack is just one of those things.
H.J.
More information about the Binutils
mailing list