Fix issue where PIC was added to the wrong target.

Should be for x86_64_unknown_none, but aarch64_unknown_none was inadvertently
updated instead.
This commit is contained in:
Mike Leany 2021-10-14 12:10:20 -06:00
parent 3a1879299e
commit 11d54dc1c6
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ pub fn target() -> Target {
linker: Some("rust-lld".to_owned()),
features: "+strict-align,+neon,+fp-armv8".to_string(),
executables: true,
relocation_model: RelocModel::Pic,
relocation_model: RelocModel::Static,
disable_redzone: true,
max_atomic_width: Some(128),
panic_strategy: PanicStrategy::Abort,

View file

@ -18,7 +18,7 @@ pub fn target() -> Target {
position_independent_executables: true,
static_position_independent_executables: true,
relro_level: RelroLevel::Full,
relocation_model: RelocModel::Static,
relocation_model: RelocModel::Pic,
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
linker: Some("rust-lld".to_owned()),
features: