aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2024-09-22 10:58:53 -0400
committerMichael Dusan <michael.dusan@gmail.com>2024-10-05 10:27:13 -0400
commit665d0157d5f333ebc6b353703e77661b11bcac8c (patch)
tree22b9f74c575a43e8450ef438e4b9802fb6f5b428 /lib/std/start.zig
parentf7da960a33828505c91fb2d2f022f8966b6f9cc7 (diff)
downloadzig-665d0157d5f333ebc6b353703e77661b11bcac8c.tar.gz
zig-665d0157d5f333ebc6b353703e77661b11bcac8c.zip
std ppc64: add nop to start inline-asm
fixes ld.lld error: call to save_start.posixCallMainAndExit lacks nop, can't restore toc
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig1
1 files changed, 1 insertions, 0 deletions
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).