Skip to content

Commit

Permalink
Don't use GNU noexec stack note
Browse files Browse the repository at this point in the history
NetBSD ignores this note and marks the stack no-exec unconditionally
  • Loading branch information
coypoop authored Jun 5, 2019
1 parent 81eb152 commit 77e9335
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/librustc_target/spec/netbsd_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77e9335

Please sign in to comment.