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