musl/crt/i386/Scrt1.s

25 lines
349 B
ArmAsm
Raw Normal View History

2012-05-03 01:01:55 +00:00
.weak _init
.weak _fini
.text
.global _start
_start:
xor %ebp,%ebp
pop %ecx
mov %esp,%eax
and $-16,%esp
push %esp
push %esp
push %edx
2012-05-03 01:01:55 +00:00
call 1f
1: addl $_GLOBAL_OFFSET_TABLE_,(%esp)
pop %ebx
call 1f
1: addl $[_fini-.],(%esp)
call 1f
1: addl $[_init-.],(%esp)
push %eax
push %ecx
push main@GOT(%ebx)
2012-05-03 01:01:55 +00:00
call __libc_start_main@plt
1: jmp 1b