auto merge of #16534 : thestinger/rust/dep, r=huonw

This is already enabled by default for x86_64 executables on Windows,
but it needs to be manually enabled on x86.

Closes #16533
This commit is contained in:
bors 2014-08-16 14:51:07 +00:00
commit 22b7e4dd56

View file

@ -1472,6 +1472,9 @@ fn link_args(cmd: &mut Command,
// [1] - https://sourceware.org/bugzilla/show_bug.cgi?id=13130
// [2] - https://code.google.com/p/go/issues/detail?id=2139
cmd.arg("-Wl,--enable-long-section-names");
// Always enable DEP (NX bit) when it is available
cmd.arg("-Wl,--nxcompat");
}
if sess.targ_cfg.os == abi::OsAndroid {