Skip to content

Commit 4bd8f2b

Browse files
authored
Rollup merge of rust-lang#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
2 parents 5b41887 + 0b00dbe commit 4bd8f2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_target/spec/uefi_base.rs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pub fn opts() -> TargetOptions {
6262
exe_suffix: ".efi".to_string(),
6363
allows_weak_linkage: false,
6464
panic_strategy: PanicStrategy::Abort,
65+
stack_probes: true,
6566
singlethread: true,
6667
emit_debug_gdb_scripts: false,
6768

0 commit comments

Comments
 (0)