Skip to content

Commit

Permalink
Merge pull request #982 from Qwinci/fix-managarm-aarch64-crt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Feb 8, 2024
2 parents e51d93e + 4e6a8da commit 3533c87
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 3533c87

Please sign in to comment.