mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-30 00:32:39 +02:00
Fixed crt0 issues which triggered crashes.
This commit is contained in:
parent
dc376aa222
commit
5f2b139174
@ -34,10 +34,9 @@ bss_loop:
|
||||
add x0, x0, x30 // relocate ptr
|
||||
|
||||
got_loop:
|
||||
ldr x2, [x0]
|
||||
ldr x3, [x2]
|
||||
ldr x3, [x0]
|
||||
add x3, x3, x30
|
||||
str x3, [x2]
|
||||
str x3, [x0], #8
|
||||
subs x1, x1, #8
|
||||
bne got_loop
|
||||
|
||||
@ -45,6 +44,7 @@ got_loop:
|
||||
mov x1, #0 // argv
|
||||
|
||||
ldr x3, =main
|
||||
add x3, x3, x30
|
||||
blr x3
|
||||
|
||||
_sysexit:
|
||||
|
Loading…
Reference in New Issue
Block a user