[cfe-dev] Compiler flag to toggle NX (NonExec) bit

Joerg Sonnenberger joerg at britannica.bec.de
Fri May 16 05:21:27 PDT 2014


On Thu, May 15, 2014 at 11:22:46PM -0400, Kangkook Jee wrote:
> Hi all, 
> 
> I’m trying to find Clang's option equivalent to GNU binutil’s “-z execstack or
> -z noexecstack”  which is to toggle NX bit of output binary.  For instance,
> something similar to the following. 

-Wl,-z,execstack as you should be using for GCC as well.

Joerg



More information about the cfe-dev mailing list