aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-09-06 10:55:45 -0700
committerGitHub <noreply@github.com>2024-09-06 10:55:45 -0700
commitf29bdd6746691d0a547140e435056a000419480f (patch)
tree0ca346e932f845c4dc710dc00484c3c3b64c20e4 /lib/std/start.zig
parent96fcc8d63bf8391e5cf2246e9427e9ab56399d86 (diff)
parent0ecc6332b4eb1ced547ffa38f57471134aaa4d13 (diff)
downloadzig-f29bdd6746691d0a547140e435056a000419480f.tar.gz
zig-f29bdd6746691d0a547140e435056a000419480f.zip
Merge pull request #21263 from alexrp/thumb-fixes
Some fixes for `thumb-linux-*` support
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index ea6f347bd6..5c94a4b591 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -283,7 +283,9 @@ fn _start() callconv(.Naked) noreturn {
\\ mov fp, #0
\\ mov lr, #0
\\ mov a1, sp
- \\ and sp, #-16
+ \\ mov ip, sp
+ \\ and ip, ip, #-16
+ \\ mov sp, ip
\\ b %[posixCallMainAndExit]
,
.csky =>