Commit f81a721e41

Jacob Young <jacobly0@users.noreply.github.com>
2025-09-12 08:50:42
standalone: fix misaligned stack crash
1 parent 5144f10
Changed files (1)
test
standalone
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);