]>
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 { | |
b7449926 | 9 | llvm_target: "armebv7r-unknown-none-eabi".to_string(), |
29967ef6 | 10 | pointer_width: 32, |
416331ca | 11 | data_layout: "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), |
b7449926 | 12 | arch: "arm".to_string(), |
b7449926 | 13 | options: TargetOptions { |
136023e0 | 14 | abi: "eabi".to_string(), |
5869c6ff | 15 | endian: Endian::Big, |
29967ef6 | 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), | |
b7449926 | 22 | emit_debug_gdb_scripts: false, |
dfeec247 | 23 | ..Default::default() |
b7449926 | 24 | }, |
29967ef6 | 25 | } |
b7449926 | 26 | } |