standalone: fix misaligned stack crash

This commit is contained in:
Jacob Young 2025-09-12 02:50:42 -04:00 committed by Andrew Kelley
parent 5144f10ec9
commit f81a721e41

View file

@ -37,7 +37,7 @@ noinline fn frame0(expected: *[4]usize, unwound: *[4]usize) void {
} }
// No-OS entrypoint // No-OS entrypoint
export fn _start() callconv(.c) noreturn { export fn _start() callconv(.withStackAlign(.c, 1)) noreturn {
var expected: [4]usize = undefined; var expected: [4]usize = undefined;
var unwound: [4]usize = undefined; var unwound: [4]usize = undefined;
frame0(&expected, &unwound); frame0(&expected, &unwound);