Skip to content

Commit 3a18792

Browse files
joshtriplettmikeleany
authored andcommitted
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.
1 parent 9704a83 commit 3a18792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/spec/aarch64_unknown_none.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn target() -> Target {
1414
linker: Some("rust-lld".to_owned()),
1515
features: "+strict-align,+neon,+fp-armv8".to_string(),
1616
executables: true,
17-
relocation_model: RelocModel::Static,
17+
relocation_model: RelocModel::Pic,
1818
disable_redzone: true,
1919
max_atomic_width: Some(128),
2020
panic_strategy: PanicStrategy::Abort,

0 commit comments

Comments
 (0)