[lld] r253797 - ELF: Make .note.GNU-stack more compatible with traditional linkers.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 10:53:23 PST 2015


On Mon, Nov 23, 2015 at 4:20 AM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> On Sun, Nov 22, 2015 at 07:29:20PM -0800, Rui Ueyama wrote:
> > On Sun, Nov 22, 2015 at 8:56 AM, Joerg Sonnenberger via llvm-commits <
> > llvm-commits at lists.llvm.org> wrote:
> >
> > > On Sat, Nov 21, 2015 at 10:19:32PM -0000, Rui Ueyama via llvm-commits
> > > wrote:
> > > > At least, NetBSD loader does not understand PT_GNU_STACK segments and
> > > > reject any executables that have the section. This patch makes lld
> > > > compatible with such operating systems.
> > >
> > > It's not the NetBSD loader, it's third party firmware loaders that's
> the
> > > problem. For the NetBSD loader itself, it's just extra noise.
> > > Nevertheless, thanks for the update.
> > >
> >
> > Wait, if I knew NetBSD is fine with the former output, I might not have
> > made this change. I didn't like this change and submitted as a necessary
> > evil. What is that firmware? I'm inclined to roll back this patch.
>
> OpenFirmware. If there is no way to get rid of PT_GNU_STACK, you can't
> build bootable kernels. Being forced to get that junk is bad enough as
> is.
>

I don't think so. If most Unix systems recognize the section or at least
ignore that, it is worth to be there unconditionally.


>
> 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/20151123/55bb79c2/attachment.html>


More information about the llvm-commits mailing list