rustc_target/spec/targets/
mipsel_sony_psp.rsuse crate::spec::{Cc, LinkerFlavor, Lld, RelocModel, Target, TargetOptions, cvs};
const LINKER_SCRIPT: &str = include_str!("./mipsel_sony_psp_linker_script.ld");
pub(crate) fn target() -> Target {
let pre_link_args = TargetOptions::link_args(LinkerFlavor::Gnu(Cc::No, Lld::No), &[
"--emit-relocs",
"--nmagic",
]);
Target {
llvm_target: "mipsel-sony-psp".into(),
metadata: crate::spec::TargetMetadata {
description: Some("MIPS (LE) Sony PlatStation Portable (PSP)".into()),
tier: Some(3),
host_tools: Some(false),
std: Some(false),
},
pointer_width: 32,
data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(),
arch: "mips".into(),
options: TargetOptions {
os: "psp".into(),
vendor: "sony".into(),
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
cpu: "mips2".into(),
linker: Some("rust-lld".into()),
relocation_model: RelocModel::Static,
features: "+single-float".into(),
llvm_args: cvs!["-mno-check-zero-division"],
pre_link_args,
link_script: Some(LINKER_SCRIPT.into()),
..Default::default()
},
}
}