2021-01-05 01:13:27 +00:00
|
|
|
use crate::abi::Endian;
|
2022-08-06 18:08:46 +00:00
|
|
|
use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetOptions};
|
2018-02-16 20:29:24 +00:00
|
|
|
|
2020-10-05 12:37:55 +00:00
|
|
|
pub fn target() -> Target {
|
2018-02-16 20:29:24 +00:00
|
|
|
let mut base = super::netbsd_base::opts();
|
2022-08-06 18:08:46 +00:00
|
|
|
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m32"]);
|
2018-02-16 20:29:24 +00:00
|
|
|
base.max_atomic_width = Some(32);
|
2022-09-26 20:40:24 +00:00
|
|
|
base.stack_probes = StackProbeType::Inline;
|
2018-02-16 20:29:24 +00:00
|
|
|
|
2020-10-05 12:37:55 +00:00
|
|
|
Target {
|
2022-03-22 10:43:05 +00:00
|
|
|
llvm_target: "powerpc-unknown-netbsd".into(),
|
2020-10-14 16:08:12 +00:00
|
|
|
pointer_width: 32,
|
2022-03-22 10:43:05 +00:00
|
|
|
data_layout: "E-m:e-p:32:32-i64:64-n32".into(),
|
|
|
|
arch: "powerpc".into(),
|
|
|
|
options: TargetOptions { endian: Endian::Big, mcount: "__mcount".into(), ..base },
|
2020-10-05 12:37:55 +00:00
|
|
|
}
|
2018-02-16 20:29:24 +00:00
|
|
|
}
|