]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | // Targets the Cortex-R4F/R5F processor (ARMv7-R) |
2 | ||
f9f354fc XL |
3 | use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel}; |
4 | use crate::spec::{Target, TargetOptions, TargetResult}; | |
94b46f34 XL |
5 | |
6 | pub fn target() -> TargetResult { | |
7 | Ok(Target { | |
b7449926 | 8 | llvm_target: "armebv7r-unknown-none-eabihf".to_string(), |
94b46f34 XL |
9 | target_endian: "big".to_string(), |
10 | target_pointer_width: "32".to_string(), | |
11 | target_c_int_width: "32".to_string(), | |
416331ca | 12 | data_layout: "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), |
94b46f34 XL |
13 | arch: "arm".to_string(), |
14 | target_os: "none".to_string(), | |
b7449926 XL |
15 | target_env: String::new(), |
16 | target_vendor: String::new(), | |
17 | linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld), | |
94b46f34 XL |
18 | |
19 | options: TargetOptions { | |
20 | executables: true, | |
b7449926 | 21 | linker: Some("rust-lld".to_owned()), |
f9f354fc | 22 | relocation_model: RelocModel::Static, |
94b46f34 | 23 | panic_strategy: PanicStrategy::Abort, |
416331ca | 24 | features: "+vfp3,-d32,-fp16".to_string(), |
94b46f34 | 25 | max_atomic_width: Some(32), |
f035d41b | 26 | unsupported_abis: super::arm_base::unsupported_abis(), |
94b46f34 | 27 | emit_debug_gdb_scripts: false, |
dfeec247 | 28 | ..Default::default() |
94b46f34 XL |
29 | }, |
30 | }) | |
31 | } |