mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
310 B
22 lines
310 B
.weak _init
|
|
.weak _fini
|
|
.text
|
|
.global _start
|
|
_start:
|
|
xorl %ebp,%ebp
|
|
popl %ecx
|
|
movl %esp,%eax
|
|
andl $-16,%esp
|
|
pushl %esp
|
|
pushl %esp
|
|
pushl %edx
|
|
call 1f
|
|
1: addl $[_fini-.],(%esp)
|
|
call 1f
|
|
1: addl $[_init-.],(%esp)
|
|
pushl %eax
|
|
pushl %ecx
|
|
call 1f
|
|
1: addl $[main-.],(%esp)
|
|
call __libc_start_main
|
|
1: jmp 1b
|
|
|