1 use crate::spec::{LinkArgs, LinkerFlavor, LldFlavor, PanicStrategy, TargetOptions, TlsModel};
3 pub fn opts() -> TargetOptions {
4 let mut pre_link_args = LinkArgs::new();
6 LinkerFlavor::Lld(LldFlavor::Ld),
7 vec!["--build-id".to_string(), "--hash-style=gnu".to_string(), "--Bstatic".to_string()],
11 os: "hermit".to_string(),
12 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
13 linker: Some("rust-lld".to_owned()),
15 has_thread_local: true,
17 panic_strategy: PanicStrategy::Abort,
18 position_independent_executables: true,
19 static_position_independent_executables: true,
20 tls_model: TlsModel::InitialExec,