rustc_target/spec/targets/
arm_unknown_linux_gnueabihf.rs

1use crate::spec::{FloatAbi, Target, TargetMetadata, TargetOptions, base};
2
3pub(crate) fn target() -> Target {
4    Target {
5        llvm_target: "arm-unknown-linux-gnueabihf".into(),
6        metadata: TargetMetadata {
7            description: Some("Armv6 Linux, hardfloat (kernel 3.2, glibc 2.17)".into()),
8            tier: Some(2),
9            host_tools: Some(true),
10            std: Some(true),
11        },
12        pointer_width: 32,
13        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
14        arch: "arm".into(),
15        options: TargetOptions {
16            abi: "eabihf".into(),
17            llvm_floatabi: Some(FloatAbi::Hard),
18            features: "+strict-align,+v6,+vfp2,-d32".into(),
19            max_atomic_width: Some(64),
20            mcount: "\u{1}__gnu_mcount_nc".into(),
21            llvm_mcount_intrinsic: Some("llvm.arm.gnu.eabi.mcount".into()),
22            // The default on linux is to have `default_uwtable=true`, but on
23            // this target we get an "`__aeabi_unwind_cpp_pr0` not defined"
24            // linker error, so set it to `true` here.
25            // FIXME(#146996): Remove this override once #146996 has been fixed.
26            default_uwtable: false,
27            ..base::linux_gnu::opts()
28        },
29    }
30}