#if defined(__arm__) .syntax unified .arm .global _start .type _start, %function _start: ldr r0, [sp] add r1, sp, #4 add r2, r0, #1 add r2, r1, r2, lsl #2 bic sp, sp, #7 bl main mov r7, #1 svc #0 .size _start, .-_start /* * clang lowers memset(p, 0, n) to these EABI helpers, which bionic 2.2 * does not export. Provide them locally so the binary links on old Android. */ .global __aeabi_memclr .global __aeabi_memclr4 .global __aeabi_memclr8 .type __aeabi_memclr, %function .type __aeabi_memclr4, %function .type __aeabi_memclr8, %function __aeabi_memclr: __aeabi_memclr4: __aeabi_memclr8: mov r2, #0 mov r3, #0 1: cmp r2, r1 bcs 2f strb r3, [r0, r2] add r2, r2, #1 b 1b 2: bx lr .size __aeabi_memclr8, .-__aeabi_memclr8 #elif defined(__i386__) .global _start .type _start, @function _start: movl (%esp), %eax leal 4(%esp), %edx leal 4(%edx,%eax,4), %ecx pushl %ecx pushl %edx pushl %eax call main movl %eax, %ebx movl $1, %eax int $0x80 .size _start, .-_start #endif