[PATCH] D14571: [ELF2] - Implemented PT_GNU_STACK support, -z execstack option.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 08:39:05 PST 2015


On Mon, Nov 16, 2015 at 03:04:45PM +0000, Ed Maste via llvm-commits wrote:
> emaste added a subscriber: emaste.
> emaste added a comment.
> 
> In http://reviews.llvm.org/D14571#289972, @grimar wrote:
> 
> > Returning to the problem itself, do really many loaders does not support PT_GNU_STACK ? It seems to be old enough feature (I can see mails of 2007 year in main archive of the binutils at sourceware.org).
> 
> 
> For FreeBSD we added support in January 2011, r217153. Because the issue was raised by @joerg I'd guess NetBSD's rtld doesn't support it.
> 
> Do we have a list of the ELF systems we desire to support in lld?

The problem is that there are legacy loaders e.g. on PowerPC that can't
be updated. It's not supported on NetBSD because the stack is not
executable by default, period. But that's a slightly different story.

Joerg


More information about the llvm-commits mailing list