1 use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, TargetOptions, TlsModel};
3 pub fn opts() -> TargetOptions {
4 let pre_link_args = TargetOptions::link_args(
5 LinkerFlavor::Gnu(Cc::No, Lld::No),
6 &["--build-id", "--hash-style=gnu", "--Bstatic"],
11 linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
12 linker: Some("rust-lld".into()),
13 has_thread_local: true,
15 panic_strategy: PanicStrategy::Abort,
16 position_independent_executables: true,
17 static_position_independent_executables: true,
18 tls_model: TlsModel::InitialExec,