]>
Commit | Line | Data |
---|---|---|
29967ef6 | 1 | use crate::spec::{LinkerFlavor, Target, TargetOptions}; |
416331ca | 2 | |
29967ef6 | 3 | pub fn target() -> Target { |
416331ca XL |
4 | let mut base = super::vxworks_base::opts(); |
5 | base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-mspe".to_string()); | |
6 | base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("--secure-plt".to_string()); | |
7 | base.max_atomic_width = Some(32); | |
8 | ||
29967ef6 | 9 | Target { |
416331ca | 10 | llvm_target: "powerpc-unknown-linux-gnuspe".to_string(), |
29967ef6 | 11 | pointer_width: 32, |
416331ca XL |
12 | data_layout: "E-m:e-p:32:32-i64:64-n32".to_string(), |
13 | arch: "powerpc".to_string(), | |
416331ca | 14 | options: TargetOptions { |
29967ef6 | 15 | endian: "big".to_string(), |
416331ca XL |
16 | // feature msync would disable instruction 'fsync' which is not supported by fsl_p1p2 |
17 | features: "+secure-plt,+msync".to_string(), | |
dfeec247 | 18 | ..base |
416331ca | 19 | }, |
29967ef6 | 20 | } |
416331ca | 21 | } |