rustc_target/spec/targets/
x86_64_unknown_trusty.rs

1// Trusty OS target for X86_64.
2
3use crate::spec::{
4    LinkSelfContainedDefault, PanicStrategy, RelroLevel, StackProbeType, Target, TargetOptions,
5};
6
7pub(crate) fn target() -> Target {
8    Target {
9        llvm_target: "x86_64-unknown-unknown-musl".into(),
10        metadata: crate::spec::TargetMetadata {
11            description: Some("x86_64 Trusty".into()),
12            tier: Some(3),
13            host_tools: Some(false),
14            std: Some(false),
15        },
16        pointer_width: 64,
17        data_layout:
18            "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128".into(),
19        arch: "x86_64".into(),
20        options: TargetOptions {
21            executables: true,
22            max_atomic_width: Some(64),
23            panic_strategy: PanicStrategy::Abort,
24            os: "trusty".into(),
25            link_self_contained: LinkSelfContainedDefault::InferredForMusl,
26            position_independent_executables: true,
27            static_position_independent_executables: true,
28            crt_static_default: true,
29            crt_static_respected: true,
30            dynamic_linking: false,
31            plt_by_default: false,
32            relro_level: RelroLevel::Full,
33            stack_probes: StackProbeType::Inline,
34            mcount: "\u{1}_mcount".into(),
35            ..Default::default()
36        },
37    }
38}