authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-08 02:14:50+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 03:14:20+02:00
log8750266719007e666c0af6e66420f1ad579b0974
tree4b30237d4dbf399c8c959171faae6e8aa7e760e7
parent8e741045bc672858dfe2ca85c8253fb755afd375
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/start.zig+1-1
......@@ -332,7 +332,7 @@ fn _start() callconv(.naked) noreturn {
332332 \\ li ra, 0
333333 \\ mv a0, sp
334334 \\ andi sp, sp, -16
335 \\ tail %[posixCallMainAndExit]@plt
335 \\ tail %[posixCallMainAndExit]
336336 ,
337337 .m68k =>
338338 // Note that the - 8 is needed because pc in the jsr instruction points into the middle