1 use crate::abi::Endian;
2 use crate::spec::{LinkerFlavor, RelroLevel, Target, TargetOptions};
4 pub fn target() -> Target {
5 let mut base = super::linux_gnu_base::opts();
6 base.cpu = "ppc64".to_string();
7 base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m64".to_string());
8 base.max_atomic_width = Some(64);
10 // ld.so in at least RHEL6 on ppc64 has a bug related to BIND_NOW, so only enable partial RELRO
11 // for now. https://github.com/rust-lang/rust/pull/43170#issuecomment-315411474
12 base.relro_level = RelroLevel::Partial;
15 llvm_target: "powerpc64-unknown-linux-gnu".to_string(),
17 data_layout: "E-m:e-i64:64-n32:64".to_string(),
18 arch: "powerpc64".to_string(),
19 options: TargetOptions { endian: Endian::Big, mcount: "_mcount".to_string(), ..base },