]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | use crate::abi::Endian; |
2b03887a | 2 | use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetOptions}; |
0531ce1d | 3 | |
29967ef6 | 4 | pub fn target() -> Target { |
0531ce1d | 5 | let mut base = super::netbsd_base::opts(); |
2b03887a | 6 | base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m32"]); |
0531ce1d | 7 | base.max_atomic_width = Some(32); |
2b03887a | 8 | base.stack_probes = StackProbeType::Inline; |
0531ce1d | 9 | |
29967ef6 | 10 | Target { |
5e7ed085 | 11 | llvm_target: "powerpc-unknown-netbsd".into(), |
29967ef6 | 12 | pointer_width: 32, |
5e7ed085 FG |
13 | data_layout: "E-m:e-p:32:32-i64:64-n32".into(), |
14 | arch: "powerpc".into(), | |
15 | options: TargetOptions { endian: Endian::Big, mcount: "__mcount".into(), ..base }, | |
29967ef6 | 16 | } |
0531ce1d | 17 | } |