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
This commit is contained in:
commit
4bd8f2bb74
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ pub fn opts() -> TargetOptions {
|
||||||
exe_suffix: ".efi".to_string(),
|
exe_suffix: ".efi".to_string(),
|
||||||
allows_weak_linkage: false,
|
allows_weak_linkage: false,
|
||||||
panic_strategy: PanicStrategy::Abort,
|
panic_strategy: PanicStrategy::Abort,
|
||||||
|
stack_probes: true,
|
||||||
singlethread: true,
|
singlethread: true,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue