[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:42:47 PST 2015


On Mon, Nov 16, 2015 at 12:32:57PM -0800, Rui Ueyama via llvm-commits wrote:
> Is the last one reliable sign that the linker can emit PT_GNU_STACK
> segment? If it is, that means compilers knew whether PT_GNU_STACK is
> supported or not for each platform, no?

It is at least something that can be dealt with. So far, there wasn't
much motivation for stopping LLVM from adding the section. With GNU ld
at least, we DISCARD it in the default linker scripts.

Joerg


More information about the llvm-commits mailing list