rustc_target/spec/targets/
armv7r_none_eabi.rs

1// Targets the Little-endian Cortex-R4/R5 processor (ARMv7-R)
2
3use crate::spec::{
4    Cc, FloatAbi, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions,
5};
6
7pub(crate) fn target() -> Target {
8    Target {
9        llvm_target: "armv7r-none-eabi".into(),
10        metadata: crate::spec::TargetMetadata {
11            description: Some("Armv7-R".into()),
12            tier: Some(2),
13            host_tools: Some(false),
14            std: Some(false),
15        },
16        pointer_width: 32,
17        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
18        arch: "arm".into(),
19
20        options: TargetOptions {
21            abi: "eabi".into(),
22            llvm_floatabi: Some(FloatAbi::Soft),
23            linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
24            linker: Some("rust-lld".into()),
25            relocation_model: RelocModel::Static,
26            panic_strategy: PanicStrategy::Abort,
27            max_atomic_width: Some(64),
28            emit_debug_gdb_scripts: false,
29            // GCC defaults to 8 for arm-none here.
30            c_enum_min_bits: Some(8),
31            ..Default::default()
32        },
33    }
34}