]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | // Targets the Little-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: "armv7r-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 { | |
136023e0 | 14 | abi: "eabi".to_string(), |
29967ef6 | 15 | linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld), |
b7449926 XL |
16 | executables: true, |
17 | linker: Some("rust-lld".to_owned()), | |
f9f354fc | 18 | relocation_model: RelocModel::Static, |
b7449926 XL |
19 | panic_strategy: PanicStrategy::Abort, |
20 | max_atomic_width: Some(32), | |
b7449926 | 21 | emit_debug_gdb_scripts: false, |
dfeec247 | 22 | ..Default::default() |
b7449926 | 23 | }, |
29967ef6 | 24 | } |
b7449926 | 25 | } |