musl/crt/i386/crt1.s

20 lines
247 B
ArmAsm
Raw Normal View History

.weak _init
.weak _fini
2011-02-12 05:22:29 +00:00
.text
.global _start
_start:
xorl %ebp,%ebp
popl %ecx
movl %esp,%eax
andl $-16,%esp
pushl %esp
pushl %esp
pushl %edx
pushl $_fini
pushl $_init
2011-02-12 05:22:29 +00:00
pushl %eax
pushl %ecx
pushl $main
2011-02-12 05:22:29 +00:00
call __libc_start_main
2011-02-22 03:26:31 +00:00
1: jmp 1b