[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 12:01:14 PST 2015


On Mon, Nov 16, 2015 at 10:40:50AM -0800, Rui Ueyama wrote:
> Fair. I want to make LLD useful (or useable at least) on NetBSD, so adding
> PT_GNU_STACK unconditionally wouldn't work. But, I don't want to copy the
> nastiness of the existing linkers checking all input files' .note.GNU-stack
> sections. I want to do that in a different way.
> 
> What if you want to make stack executable on NetBSD, how can you control it?

Call __enable_execute_stack, the dynamic linker and libc provide no
other mechanism for silently enabling it on startup.

Joerg


More information about the llvm-commits mailing list