projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jmp_buf overhaul fixing several issues
[musl]
/
crt
/
i386
/
crt1.s
diff --git
a/crt/i386/crt1.s
b/crt/i386/crt1.s
index
3e88c78
..
f5b4f4f
100644
(file)
--- a/
crt/i386/crt1.s
+++ b/
crt/i386/crt1.s
@@
-1,18
+1,19
@@
+.weak _init
+.weak _fini
.text
.global _start
_start:
.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)
+ xor %ebp,%ebp
+ pop %ecx
+ mov %esp,%eax
+ and $-16,%esp
+ push %esp
+ push %esp
+ push %edx
+ push $_fini
+ push $_init
+ push %eax
+ push %ecx
+ push $main
call __libc_start_main
1: jmp 1b
call __libc_start_main
1: jmp 1b