2021-01-05 01:13:27 +00:00
|
|
|
use crate::abi::Endian;
|
2020-10-05 12:37:55 +00:00
|
|
|
use crate::spec::{LinkerFlavor, 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-06-17 14:38:42 +00:00
|
|
|
base.add_pre_link_args(LinkerFlavor::Gcc, &["-m32"]);
|
2018-02-16 20:29:24 +00:00
|
|
|
base.max_atomic_width = Some(32);
|
|
|
|
|
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
|
|
|
}
|