musl/crt/i386/crt1.s
2011-02-21 22:27:35 -05:00

19 lines
240 B
ArmAsm

.text
.global _start
_start:
xorl %ebp,%ebp
popl %ecx
movl %esp,%eax
andl $-16,%esp
pushl %esp
pushl %esp
pushl %edx
pushl %ebp
pushl %ebp
pushl %eax
pushl %ecx
call 1f
1: addl $[main-.],(%esp)
call __libc_start_main
1: jmp 1b