diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-24 17:34:44 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-24 21:56:52 +0200 |
| commit | 714e7433930e68698b1e33c1de13dc5514cd5a77 (patch) | |
| tree | 4b779587e0dd539a7f93f1a4ff112f6d290a51b8 /lib/std/start.zig | |
| parent | 9771390f8980ef455cd0113840556e58ebea4ba1 (diff) | |
| download | zig-714e7433930e68698b1e33c1de13dc5514cd5a77.tar.gz zig-714e7433930e68698b1e33c1de13dc5514cd5a77.zip | |
start: Align the stack on aarch64 just in case.
The kernel does this as required, but we cannot trust dynamic linkers to do it.
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index 4c3329a01c..35485a6995 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -297,6 +297,7 @@ fn _start() callconv(.Naked) noreturn { \\ mov fp, #0 \\ mov lr, #0 \\ mov x0, sp + \\ and sp, x0, #-16 \\ b %[posixCallMainAndExit] , .arm, .armeb, .thumb, .thumbeb => |
