We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cbffd5 commit 8e36b3aCopy full SHA for 8e36b3a
src/librustc_back/target/freebsd_base.rs
@@ -18,15 +18,6 @@ pub fn opts() -> TargetOptions {
18
executables: true,
19
has_rpath: true,
20
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
-
30
// Always enable NX protection when it is available
31
"-Wl,-z,noexecstack".to_string(),
32
],
0 commit comments