2021-01-05 01:13:27 +00:00
|
|
|
use crate::abi::Endian;
|
2022-09-26 13:40:24 -07:00
|
|
|
use crate::spec::{LinkerFlavor, StackProbeType, Target, TargetOptions};
|
2018-02-23 22:18:40 +01:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
2020-11-10 23:32:58 +03:00
|
|
|
let mut base = super::linux_gnu_base::opts();
|
2022-06-17 17:38:42 +03:00
|
|
|
base.add_pre_link_args(LinkerFlavor::Gcc, &["-mspe"]);
|
2018-02-23 22:18:40 +01:00
|
|
|
base.max_atomic_width = Some(32);
|
2022-09-26 13:40:24 -07:00
|
|
|
base.stack_probes = StackProbeType::Inline;
|
2018-02-23 22:18:40 +01:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
Target {
|
2022-03-22 11:43:05 +01:00
|
|
|
llvm_target: "powerpc-unknown-linux-gnuspe".into(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 32,
|
2022-03-22 11:43:05 +01:00
|
|
|
data_layout: "E-m:e-p:32:32-i64:64-n32".into(),
|
|
|
|
arch: "powerpc".into(),
|
2021-07-06 22:00:53 -07:00
|
|
|
options: TargetOptions {
|
2022-03-22 11:43:05 +01:00
|
|
|
abi: "spe".into(),
|
2021-07-06 22:00:53 -07:00
|
|
|
endian: Endian::Big,
|
2022-03-22 11:43:05 +01:00
|
|
|
mcount: "_mcount".into(),
|
2021-07-06 22:00:53 -07:00
|
|
|
..base
|
|
|
|
},
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2018-02-23 22:18:40 +01:00
|
|
|
}
|