]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | // Targets the Big endian Cortex-R4/R5 processor (ARMv7-R) |
2 | ||
f9f354fc | 3 | use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel}; |
29967ef6 | 4 | use crate::spec::{Target, TargetOptions}; |
b7449926 | 5 | |
29967ef6 XL |
6 | pub fn target() -> Target { |
7 | Target { | |
b7449926 | 8 | llvm_target: "armebv7r-unknown-none-eabi".to_string(), |
29967ef6 | 9 | pointer_width: 32, |
416331ca | 10 | data_layout: "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), |
b7449926 | 11 | arch: "arm".to_string(), |
b7449926 XL |
12 | |
13 | options: TargetOptions { | |
29967ef6 XL |
14 | endian: "big".to_string(), |
15 | vendor: String::new(), | |
16 | linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld), | |
b7449926 XL |
17 | executables: true, |
18 | linker: Some("rust-lld".to_owned()), | |
f9f354fc | 19 | relocation_model: RelocModel::Static, |
b7449926 XL |
20 | panic_strategy: PanicStrategy::Abort, |
21 | max_atomic_width: Some(32), | |
f035d41b | 22 | unsupported_abis: super::arm_base::unsupported_abis(), |
b7449926 | 23 | emit_debug_gdb_scripts: false, |
dfeec247 | 24 | ..Default::default() |
b7449926 | 25 | }, |
29967ef6 | 26 | } |
b7449926 | 27 | } |