rustc_target/spec/targets/
powerpc_wrs_vxworks_spe.rs
1use rustc_abi::Endian;
2
3use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetOptions, base};
4
5pub(crate) fn target() -> Target {
6 let mut base = base::vxworks::opts();
7 base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mspe", "--secure-plt"]);
8 base.max_atomic_width = Some(32);
9 base.stack_probes = StackProbeType::Inline;
10
11 Target {
12 llvm_target: "powerpc-unknown-linux-gnuspe".into(),
13 metadata: crate::spec::TargetMetadata {
14 description: None,
15 tier: Some(3),
16 host_tools: Some(false),
17 std: None, },
19 pointer_width: 32,
20 data_layout: "E-m:e-p:32:32-Fn32-i64:64-n32".into(),
21 arch: "powerpc".into(),
22 options: TargetOptions {
23 abi: "spe".into(),
24 endian: Endian::Big,
25 features: "+secure-plt,+msync".into(),
27 ..base
28 },
29 }
30}