diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-12-19 11:47:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-19 11:47:16 +0100 |
| commit | 4bd8f2bb74329fbdaca684fe163c8e840591d4af (patch) | |
| tree | 183819e567d3d79e1385d8ee131e04ecb51296d8 | |
| parent | 5b41887e0e3a6b380bc5ec8fefe16b2ad8a0c9af (diff) | |
| parent | 0b00dbedce3100b3c6504630896725035c12b1a7 (diff) | |
| download | rust-4bd8f2bb74329fbdaca684fe163c8e840591d4af.tar.gz rust-4bd8f2bb74329fbdaca684fe163c8e840591d4af.zip | |
Rollup merge of #56913 - tirr-c:uefi-stack-probes, r=alexcrichton
Enable stack probes for UEFI images When building UEFI images, we don't link to any CRT libraries so we need to provide a stack probe. Without `__rust_probestack`, the linker looks for `__chkstk` and fails to link if there is a function with large local variables. r? @alexcrichton
| -rw-r--r-- | src/librustc_target/spec/uefi_base.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_target/spec/uefi_base.rs b/src/librustc_target/spec/uefi_base.rs index 9b051583760..9b18c3faad7 100644 --- a/src/librustc_target/spec/uefi_base.rs +++ b/src/librustc_target/spec/uefi_base.rs @@ -62,6 +62,7 @@ pub fn opts() -> TargetOptions { exe_suffix: ".efi".to_string(), allows_weak_linkage: false, panic_strategy: PanicStrategy::Abort, + stack_probes: true, singlethread: true, emit_debug_gdb_scripts: false, |
