zig

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

commit ab3e34b09b031960d1673bc462a2d260f654cfd2 (tree)
parent 80eacd60034b71a4eaa580fe83822d80d2e09360
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);