From f81a721e4152ef514fd5ebf2f5fb39b97f844b4b Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 12 Sep 2025 02:50:42 -0400 Subject: [PATCH] standalone: fix misaligned stack crash --- test/standalone/stack_iterator/unwind_freestanding.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/standalone/stack_iterator/unwind_freestanding.zig b/test/standalone/stack_iterator/unwind_freestanding.zig index ec4bb5d00e..f655507b32 100644 --- a/test/standalone/stack_iterator/unwind_freestanding.zig +++ b/test/standalone/stack_iterator/unwind_freestanding.zig @@ -37,7 +37,7 @@ noinline fn frame0(expected: *[4]usize, unwound: *[4]usize) void { } // No-OS entrypoint -export fn _start() callconv(.c) noreturn { +export fn _start() callconv(.withStackAlign(.c, 1)) noreturn { var expected: [4]usize = undefined; var unwound: [4]usize = undefined; frame0(&expected, &unwound);