]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_target/src/spec/openbsd_base.rs
Auto merge of #84842 - blkerby:null_lowercase, r=joshtriplett
[rust.git] / compiler / rustc_target / src / spec / openbsd_base.rs
index 0aeefba3647d1bb72ca56680bda0161d1b151b7f..8f33bacd9228eb34166cbadd488257d8f728067c 100644 (file)
@@ -1,24 +1,14 @@
-use crate::spec::{LinkArgs, LinkerFlavor, RelroLevel, TargetOptions};
+use crate::spec::{RelroLevel, TargetOptions};
 
 pub fn opts() -> TargetOptions {
-    let mut args = LinkArgs::new();
-    args.insert(
-        LinkerFlavor::Gcc,
-        vec![
-            // Always enable NX protection when it is available
-            "-Wl,-z,noexecstack".to_string(),
-        ],
-    );
-
     TargetOptions {
         os: "openbsd".to_string(),
         dynamic_linking: true,
         executables: true,
-        os_family: Some("unix".to_string()),
+        families: vec!["unix".to_string()],
         linker_is_gnu: true,
         has_rpath: true,
         abi_return_struct_as_int: true,
-        pre_link_args: args,
         position_independent_executables: true,
         eliminate_frame_pointer: false, // FIXME 43575
         relro_level: RelroLevel::Full,