From 9ca1d1e6b1e7eef01f59703f10d7d4dcb10dfcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 8 Aug 2026 02:44:02 +0200 Subject: [PATCH] std.start: fix alpha _start assembly to be static PIE safe jsr used in this way is a macro for ldq t12, (gp) jsr ra, (t12), with relocations on both instructions. br avoids this. --- lib/std/start.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/start.zig b/lib/std/start.zig index 92482d6a9109d335f9f3ddb1784247d66e5a0302..cef9f81dc13832ddd109004141bafa2e3e579c72 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -247,7 +247,7 @@ fn _start() callconv(.naked) noreturn { \\ mov $30, $16 \\ ldi $1, -16 \\ and $30, $30, $1 - \\ jsr $26, %[posixCallMainAndExit] + \\ br $31, %[posixCallMainAndExit] , .arc, .arceb => // ARC v1 and v2 had a very low stack alignment requirement of 4; v3 increased it to 16. -- 2.54.0