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

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 08:58:14 PST 2015


Does a loader reject an executable if it does not understand PT_GNU_STACK
section?

On Mon, Nov 16, 2015 at 8:39 AM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> 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.
>

Why do you want to use a new linker with an older system?


>
> Joerg
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151116/c990a310/attachment.html>


More information about the llvm-commits mailing list