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:
Pietro Albini 2018-12-19 11:47:16 +01:00 committed by GitHub
commit 4bd8f2bb74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,