summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/arch-arm/bionic/crtbegin_dynamic.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/arch-arm/bionic/crtbegin_dynamic.S b/libc/arch-arm/bionic/crtbegin_dynamic.S
index 6ca0845..ec6d482 100644
--- a/libc/arch-arm/bionic/crtbegin_dynamic.S
+++ b/libc/arch-arm/bionic/crtbegin_dynamic.S
@@ -53,7 +53,9 @@ _start:
ldr r2, =main
adr r3, 1f
ldr r4, =__libc_init
- bx r4
+ blx r4
+ mov r0, #0
+ bx r0
1: .long __PREINIT_ARRAY__
.long __INIT_ARRAY__