diff options
| -rw-r--r-- | compiler/rustc_target/src/spec/x86_64_unknown_none_elf.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/x86_64_unknown_none_elf.rs b/compiler/rustc_target/src/spec/x86_64_unknown_none_elf.rs index 8cae3d0174d..58a83e75e41 100644 --- a/compiler/rustc_target/src/spec/x86_64_unknown_none_elf.rs +++ b/compiler/rustc_target/src/spec/x86_64_unknown_none_elf.rs @@ -6,7 +6,7 @@ // // For example, `-C target-cpu=cortex-a53`. -use super::{LinkerFlavor, LldFlavor, PanicStrategy, Target, TargetOptions}; +use super::{CodeModel, LinkerFlavor, LldFlavor, PanicStrategy, Target, TargetOptions}; pub fn target() -> Target { let opts = TargetOptions { @@ -17,6 +17,7 @@ pub fn target() -> Target { executables: true, disable_redzone: true, panic_strategy: PanicStrategy::Abort, + code_model: Some(CodeModel::Kernel), ..Default::default() }; Target { |
