aarch64: align sp in _start

This commit is contained in:
Ivan Tan
2023-07-07 18:58:42 +08:00
parent d006b95701
commit 4cb564bc99
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ global_asm!(
.globl _start
_start:
mov x0, sp
and sp, x0, #0xfffffffffffffff0 //align sp
bl relibc_start
"
);
+1
View File
@@ -9,6 +9,7 @@ global_asm!(
.globl _start
_start:
mov x0, sp
and sp, x0, #0xfffffffffffffff0 //align sp
bl relibc_ld_so_start
# TODO: aarch64
udf #0