about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcoypoop <coypu@sdf.org>2019-06-05 12:19:34 +0300
committerGitHub <noreply@github.com>2019-06-05 12:19:34 +0300
commit77e93358686f725012109f8bb0c8738182d74701 (patch)
tree6ab292e5a07128089545eb15aa073df0a0f3cd1a
parent81eb15210a0c43820b146cd9ae6fd2062e1b2922 (diff)
downloadrust-77e93358686f725012109f8bb0c8738182d74701.tar.gz
rust-77e93358686f725012109f8bb0c8738182d74701.zip
Don't use GNU noexec stack note
NetBSD ignores this note and marks the stack no-exec unconditionally
-rw-r--r--src/librustc_target/spec/netbsd_base.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc_target/spec/netbsd_base.rs b/src/librustc_target/spec/netbsd_base.rs
index e9cd98c0e71..72e2fd59cf8 100644
--- a/src/librustc_target/spec/netbsd_base.rs
+++ b/src/librustc_target/spec/netbsd_base.rs
@@ -9,9 +9,6 @@ pub fn opts() -> TargetOptions {
         // libraries which follow this flag.  Thus, use it before
         // specifying libraries to link to.
         "-Wl,--as-needed".to_string(),
-
-        // Always enable NX protection when it is available
-        "-Wl,-z,noexecstack".to_string(),
     ]);
 
     TargetOptions {