From fff5ce053fcfaf0cf3fea815b4c50c000036ff5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 24 Jul 2024 20:11:36 +0200 Subject: [PATCH] start: Align the stack on sparc64 just in case. The kernel does this as required, but we cannot trust dynamic linkers to do it. --- lib/std/start.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/start.zig b/lib/std/start.zig index 2f0a802e4e..326857d9c0 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -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"),