]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | // Targets the Big endian Cortex-R4/R5 processor (ARMv7-R) |
2 | ||
5869c6ff | 3 | use crate::abi::Endian; |
f9f354fc | 4 | use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel}; |
29967ef6 | 5 | use crate::spec::{Target, TargetOptions}; |
b7449926 | 6 | |
29967ef6 XL |
7 | pub fn target() -> Target { |
8 | Target { | |
5e7ed085 | 9 | llvm_target: "armebv7r-unknown-none-eabi".into(), |
29967ef6 | 10 | pointer_width: 32, |
5e7ed085 FG |
11 | data_layout: "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(), |
12 | arch: "arm".into(), | |
b7449926 | 13 | options: TargetOptions { |
5e7ed085 | 14 | abi: "eabi".into(), |
5869c6ff | 15 | endian: Endian::Big, |
29967ef6 | 16 | linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld), |
b7449926 | 17 | executables: true, |
5e7ed085 | 18 | linker: Some("rust-lld".into()), |
f9f354fc | 19 | relocation_model: RelocModel::Static, |
b7449926 XL |
20 | panic_strategy: PanicStrategy::Abort, |
21 | max_atomic_width: Some(32), | |
b7449926 | 22 | emit_debug_gdb_scripts: false, |
94222f64 XL |
23 | // GCC and Clang default to 8 for arm-none here |
24 | c_enum_min_bits: 8, | |
dfeec247 | 25 | ..Default::default() |
b7449926 | 26 | }, |
29967ef6 | 27 | } |
b7449926 | 28 | } |