Skip to content

Commit f41c2e0

Browse files
authored
Rollup merge of rust-lang#148437 - Jamesbarford:test/issue-98254, r=jieyouxu
Regression test for undefined `__chkstk` on `aarch64-unknown-uefi` Adds a test for compiling a block of code with target `aarch64-unknown-uefi`. Closes rust-lang#98254
2 parents 5eef85c + 1bc898e commit f41c2e0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/tools/compiletest/src/directives/directive_names.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
190190
"only-aarch64",
191191
"only-aarch64-apple-darwin",
192192
"only-aarch64-unknown-linux-gnu",
193+
"only-aarch64-unknown-uefi",
193194
"only-apple",
194195
"only-arm",
195196
"only-arm64ec",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//! Regression test for #98254, missing `__chkstk` symbol on `aarch64-unknown-uefi`.
2+
//@ build-pass
3+
//@ only-aarch64-unknown-uefi
4+
//@ compile-flags: -Cpanic=abort
5+
//@ compile-flags: -Clinker=rust-lld
6+
#![no_std]
7+
#![no_main]
8+
#[panic_handler]
9+
fn panic_handler(_info: &core::panic::PanicInfo) -> ! {
10+
loop {}
11+
}
12+
13+
#[export_name = "efi_main"]
14+
fn main() {
15+
let b = [0; 1024];
16+
}

0 commit comments

Comments
 (0)