mirror of
https://github.com/ziglang/zig.git
synced 2025-02-12 23:50:18 +00:00
start: Align the stack on aarch64 just in case.
The kernel does this as required, but we cannot trust dynamic linkers to do it.
This commit is contained in:
parent
9771390f89
commit
714e743393
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user