2012-02-06 19:39:09 +00:00
|
|
|
.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
|
2012-02-06 19:39:09 +00:00
|
|
|
call 1f
|
|
|
|
1: addl $[_fini-.],(%esp)
|
|
|
|
call 1f
|
|
|
|
1: addl $[_init-.],(%esp)
|
2011-02-12 05:22:29 +00:00
|
|
|
pushl %eax
|
|
|
|
pushl %ecx
|
2011-02-22 03:26:31 +00:00
|
|
|
call 1f
|
|
|
|
1: addl $[main-.],(%esp)
|
2011-02-12 05:22:29 +00:00
|
|
|
call __libc_start_main
|
2011-02-22 03:26:31 +00:00
|
|
|
1: jmp 1b
|