diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-09-30 16:09:29 -0700 |
|---|---|---|
| committer | Mike Leany <55358344+mikeleany@users.noreply.github.com> | 2021-10-13 08:14:13 -0600 |
| commit | 3a1879299e8742e9193569152bef3f997c51e0ea (patch) | |
| tree | 5e6b28fe0e7698ec81a38e1fe48b8150034f3e2e | |
| parent | 9704a837be2d0a9b4537edfdd8650670162d9e3b (diff) | |
| download | rust-3a1879299e8742e9193569152bef3f997c51e0ea.tar.gz rust-3a1879299e8742e9193569152bef3f997c51e0ea.zip | |
x86_64-unknown-none: Use position-independent code by default
This avoids requiring relocation code, which a bare-metal environment may not have or want.
| -rw-r--r-- | compiler/rustc_target/src/spec/aarch64_unknown_none.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/aarch64_unknown_none.rs b/compiler/rustc_target/src/spec/aarch64_unknown_none.rs index 9d365279010..d74cd9edc59 100644 --- a/compiler/rustc_target/src/spec/aarch64_unknown_none.rs +++ b/compiler/rustc_target/src/spec/aarch64_unknown_none.rs @@ -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::Static, + relocation_model: RelocModel::Pic, disable_redzone: true, max_atomic_width: Some(128), panic_strategy: PanicStrategy::Abort, |
