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

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 04:20:35 PST 2015


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.

Joerg


More information about the llvm-commits mailing list