]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/armebv7r_none_eabihf.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / armebv7r_none_eabihf.rs
CommitLineData
94b46f34
XL
1// Targets the Cortex-R4F/R5F processor (ARMv7-R)
2
5869c6ff 3use crate::abi::Endian;
f9f354fc 4use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel};
29967ef6 5use crate::spec::{Target, TargetOptions};
94b46f34 6
29967ef6
XL
7pub fn target() -> Target {
8 Target {
b7449926 9 llvm_target: "armebv7r-unknown-none-eabihf".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(),
94b46f34 12 arch: "arm".to_string(),
94b46f34 13 options: TargetOptions {
136023e0 14 abi: "eabihf".to_string(),
5869c6ff 15 endian: Endian::Big,
29967ef6 16 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
94b46f34 17 executables: true,
b7449926 18 linker: Some("rust-lld".to_owned()),
f9f354fc 19 relocation_model: RelocModel::Static,
94b46f34 20 panic_strategy: PanicStrategy::Abort,
416331ca 21 features: "+vfp3,-d32,-fp16".to_string(),
94b46f34 22 max_atomic_width: Some(32),
94b46f34 23 emit_debug_gdb_scripts: false,
dfeec247 24 ..Default::default()
94b46f34 25 },
29967ef6 26 }
94b46f34 27}