Skip to content

Commit 8e36b3a

Browse files
author
Ali Clark
committed
revert an unrelated flag addition for freebsd
1 parent 2cbffd5 commit 8e36b3a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/librustc_back/target/freebsd_base.rs

-9
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ pub fn opts() -> TargetOptions {
1818
executables: true,
1919
has_rpath: true,
2020
pre_link_args: vec![
21-
// We want to be able to strip as much executable code as possible
22-
// from the linker command line, and this flag indicates to the
23-
// linker that it can avoid linking in dynamic libraries that don't
24-
// actually satisfy any symbols up to that point (as with many other
25-
// resolutions the linker does). This option only applies to all
26-
// following libraries so we're sure to pass it as one of the first
27-
// arguments.
28-
"-Wl,--as-needed".to_string(),
29-
3021
// Always enable NX protection when it is available
3122
"-Wl,-z,noexecstack".to_string(),
3223
],

0 commit comments

Comments
 (0)