Fixing _start routine for ARM Linux targets (non-musl builds).

This commit is contained in:
Ruben Ayrapetyan 2014-11-18 20:12:25 +03:00
parent fb6bdd151a
commit 988288c9e4

View File

@ -68,6 +68,8 @@
: "r0", "r1", "r2", "r3", "r7", "r9", "memory");
#define _START \
ldr r0, [sp, #0]; \
add r1, sp, #4; \
bl main; \
\
bl __exit; \