From 665d0157d5f333ebc6b353703e77661b11bcac8c Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Sun, 22 Sep 2024 10:58:53 -0400 Subject: [PATCH] std ppc64: add nop to start inline-asm fixes ld.lld error: call to save_start.posixCallMainAndExit lacks nop, can't restore toc --- lib/std/start.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/start.zig b/lib/std/start.zig index 63255c17fc..01a33522d0 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -391,6 +391,7 @@ fn _start() callconv(.Naked) noreturn { \\ stdu 0, -32(1) \\ mtlr 0 \\ b %[posixCallMainAndExit] + \\ nop , .s390x => // Set up the stack frame (register save area and cleared back-chain slot).