Skip to content

Commit

Permalink
Fix issue where PIC was added to the wrong target.
Browse files Browse the repository at this point in the history
Should be for x86_64_unknown_none, but aarch64_unknown_none was inadvertently
updated instead.
  • Loading branch information
mikeleany committed Oct 14, 2021
1 parent 3a18792 commit 11d54dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/spec/aarch64_unknown_none.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/spec/x86_64_unknown_none.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11d54dc

Please sign in to comment.