mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue