[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 10:32:01 PST 2015
On Mon, Nov 16, 2015 at 08:58:14AM -0800, Rui Ueyama wrote:
> Does a loader reject an executable if it does not understand PT_GNU_STACK
> section?
Yes. We got a bug report last month exactly about this kind of situation.
Given that there is no sane way for stripping a program header entry,
that's quite nasty.
> > 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?
Same reason for why people update the compiler. The hardware exists, no
reason not to maximize the usefulness.
Joerg
More information about the llvm-commits
mailing list