Skip to content

Commit

Permalink
sysdeps/managarm: Fix AArch64 crt
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwinci committed Feb 8, 2024
1 parent 5454a48 commit 3f3d8b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sysdeps/managarm/aarch64/crt-src/Scrt1.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.section .text
.global _start
_start:
adr x0, main
mov x0, sp
adr x1, main

bl __mlibc_entry
brk #0
Expand Down
5 changes: 3 additions & 2 deletions sysdeps/managarm/aarch64/crt-src/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
.section .text
.global _start
_start:
adrp x0, main
add x0, x0, :lo12:main
mov x0, sp
adrp x1, main
add x1, x1, :lo12:main
bl __mlibc_entry

.section .note.GNU-stack,"",%progbits
Expand Down

0 comments on commit 3f3d8b6

Please sign in to comment.