[PATCH] PT_GNU_STACK
Jakub Jelinek
jakub@redhat.com
Sun Jun 1 22:39:00 GMT 2003
On Sun, Jun 01, 2003 at 06:16:46PM -0400, Andrew Cagney wrote:
> That's true. But is it reasonable to assume that a non-branded .o file
> should be rwx? It's going to make it too easy to accidently create
IMHO yes. There is always -z execstack or -z noexecstack in my patch,
where the developer can override the automatic decision.
> The intent was names, not contents, could be used to make the decision
> and that would avoid the double read.
But section names aren't visible at runtime. Unless ld is patched, you'd
end up with zero to 2 zero-sized PT_NOTE sections. Am I missing something?
Jakub
More information about the Binutils
mailing list