zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit f81a721e4152ef514fd5ebf2f5fb39b97f844b4b (tree)
parent 5144f10ec90bda7109cdc1b4fad621defe8b2aaa
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Fri, 12 Sep 2025 02:50:42 -0400

standalone: fix misaligned stack crash

Diffstat:
Mtest/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 @@ -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);