mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
standalone: fix misaligned stack crash
This commit is contained in:
parent
80eacd6003
commit
ab3e34b09b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue