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.
This commit is contained in:
Josh Triplett 2021-09-30 16:09:29 -07:00 committed by Mike Leany
parent 9704a837be
commit 3a1879299e

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::Static,
relocation_model: RelocModel::Pic,
disable_redzone: true,
max_atomic_width: Some(128),
panic_strategy: PanicStrategy::Abort,