From 8750266719007e666c0af6e66420f1ad579b0974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 8 Aug 2026 02:14:50 +0200 Subject: [PATCH] std.start: remove unnecessary @plt in riscv _start assembly posixCallMainAndExit is a local symbol so it will never go through the PLT, and we wouldn't want it to either due to static PIE. --- 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 6021da10325aa38a6be00d59ecc1d58634deba77..f477b9b5fa53788533b1e668f795b45c804fac77 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -332,7 +332,7 @@ fn _start() callconv(.naked) noreturn { \\ li ra, 0 \\ mv a0, sp \\ andi sp, sp, -16 - \\ tail %[posixCallMainAndExit]@plt + \\ tail %[posixCallMainAndExit] , .m68k => // Note that the - 8 is needed because pc in the jsr instruction points into the middle -- 2.54.0