1 use crate::spec::{LinkArgs, LinkerFlavor, LldFlavor, TargetOptions};
2 use std::default::Default;
4 pub fn opts() -> TargetOptions {
5 let mut pre_link_args = LinkArgs::new();
7 LinkerFlavor::Lld(LldFlavor::Ld),
9 "--build-id".to_string(),
10 "--eh-frame-hdr".to_string(),
11 "--hash-style=gnu".to_string(),
13 "rodynamic".to_string(),
18 linker: Some("rust-lld".to_owned()),
19 lld_flavor: LldFlavor::Ld,
20 dynamic_linking: true,
22 target_family: Some("unix".to_string()),
23 is_like_fuchsia: true,
27 pre_link_objects_exe: vec!["Scrt1.o".to_string()],
28 position_independent_executables: true,