From 77e93358686f725012109f8bb0c8738182d74701 Mon Sep 17 00:00:00 2001 From: coypoop Date: Wed, 5 Jun 2019 12:19:34 +0300 Subject: [PATCH] Don't use GNU noexec stack note NetBSD ignores this note and marks the stack no-exec unconditionally --- src/librustc_target/spec/netbsd_base.rs | 3 --- 1 file changed, 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 {