[PATCH] D14970: ELF: Omit PT_GNU_STACK segment if -z execstack is provided.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 15:10:13 PST 2015


ruiu created this revision.
ruiu added a reviewer: joerg.
ruiu added a subscriber: llvm-commits.

In the previous patch (r254003), I made the linker emit PT_GNU_STACK
unconditionally. But sometimes you want to have a control over the
presence of the segment. With this patch, you can omit the segment
by passing -z execstack option.

http://reviews.llvm.org/D14970

Files:
  ELF/Writer.cpp
  test/ELF/gnustack.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14970.41089.patch
Type: text/x-patch
Size: 3368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/68a7f64e/attachment.bin>


More information about the llvm-commits mailing list