mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Specify 16-byte stack alignment in _start on FreeBSD
This commit is contained in:
parent
6a8fb06006
commit
f3bc1c38bf
@ -57,6 +57,9 @@ extern fn WinMainCRTStartup() noreturn {
|
||||
|
||||
// TODO https://github.com/ziglang/zig/issues/265
|
||||
fn posixCallMainAndExit() noreturn {
|
||||
if (builtin.os == builtin.Os.freebsd) {
|
||||
@setAlignStack(16);
|
||||
}
|
||||
const argc = argc_ptr[0];
|
||||
const argv = @ptrCast([*][*]u8, argc_ptr + 1);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user