2 LinkArgs, LinkerFlavor, PanicStrategy, RelocModel, RelroLevel, StackProbeType, TargetOptions,
5 pub fn opts() -> TargetOptions {
6 let mut pre_link_args = LinkArgs::new();
9 vec!["-Wl,--as-needed".to_string(), "-Wl,-z,noexecstack".to_string()],
13 env: "gnu".to_string(),
14 disable_redzone: true,
15 panic_strategy: PanicStrategy::Abort,
16 stack_probes: StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) },
17 eliminate_frame_pointer: false,
19 position_independent_executables: true,
21 relro_level: RelroLevel::Full,
22 relocation_model: RelocModel::Static,