mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
start: Align the stack on sparc64 just in case.
The kernel does this as required, but we cannot trust dynamic linkers to do it.
This commit is contained in:
parent
ebefee6088
commit
fff5ce053f
@ -378,6 +378,9 @@ fn _start() callconv(.Naked) noreturn {
|
||||
// (2047 bytes).
|
||||
\\ mov %%g0, %%fp
|
||||
\\ add %%sp, 2175, %%o0
|
||||
\\ add %%sp, 2047, %%sp
|
||||
\\ and %%sp, -16, %%sp
|
||||
\\ sub %%sp, 2047, %%sp
|
||||
\\ ba,a %[posixCallMainAndExit]
|
||||
,
|
||||
else => @compileError("unsupported arch"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user