1
Fork 0

Use +secure-plt for powerpc-unknown-linux-gnu{,spe}

This commit is contained in:
Taiki Endo 2025-01-28 02:15:15 +09:00
parent 55459598c2
commit 56c6ffbbda
2 changed files with 7 additions and 1 deletions

View file

@ -18,6 +18,11 @@ pub(crate) fn target() -> Target {
pointer_width: 32,
data_layout: "E-m:e-p:32:32-Fn32-i64:64-n32".into(),
arch: "powerpc".into(),
options: TargetOptions { endian: Endian::Big, mcount: "_mcount".into(), ..base },
options: TargetOptions {
endian: Endian::Big,
features: "+secure-plt".into(),
mcount: "_mcount".into(),
..base
},
}
}

View file

@ -21,6 +21,7 @@ pub(crate) fn target() -> Target {
options: TargetOptions {
abi: "spe".into(),
endian: Endian::Big,
features: "+secure-plt".into(),
mcount: "_mcount".into(),
..base
},