conclusion
This commit is contained in:
parent
0f97a589b8
commit
9bc8a11afe
1069 changed files with 48694 additions and 11 deletions
0
05/musl-0.6.0/crt/crt1.c
Normal file
0
05/musl-0.6.0/crt/crt1.c
Normal file
0
05/musl-0.6.0/crt/crti.c
Normal file
0
05/musl-0.6.0/crt/crti.c
Normal file
0
05/musl-0.6.0/crt/crtn.c
Normal file
0
05/musl-0.6.0/crt/crtn.c
Normal file
17
05/musl-0.6.0/crt/i386/crt1.s
Normal file
17
05/musl-0.6.0/crt/i386/crt1.s
Normal file
|
@ -0,0 +1,17 @@
|
|||
.text
|
||||
.global _start
|
||||
_start:
|
||||
xorl %ebp,%ebp
|
||||
popl %ecx
|
||||
movl %esp,%eax
|
||||
andl $-16,%esp
|
||||
pushl %esp
|
||||
pushl %esp
|
||||
pushl %edx
|
||||
pushl $0
|
||||
pushl $0
|
||||
pushl %eax
|
||||
pushl %ecx
|
||||
pushl $main
|
||||
call __libc_start_main
|
||||
.L0: jmp .L0
|
16
05/musl-0.6.0/crt/x86_64/crt1.s
Normal file
16
05/musl-0.6.0/crt/x86_64/crt1.s
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* Written 2011 Nicholas J. Kain, released as Public Domain */
|
||||
.text
|
||||
.global _start
|
||||
_start:
|
||||
xor %rbp,%rbp /* rbp:undefined -> mark as zero 0 (ABI) */
|
||||
mov %rdx,%r9 /* 6th arg: ptr to register with atexit() */
|
||||
pop %rsi /* 2nd arg: argc */
|
||||
mov %rsp,%rdx /* 3rd arg: argv */
|
||||
andq $-16,%rsp /* align stack pointer */
|
||||
push %rax /* 8th arg: glibc ABI compatible */
|
||||
push %rsp /* 7th arg: glibc ABI compatible */
|
||||
xor %r8,%r8 /* 5th arg: always 0 */
|
||||
xor %rcx,%rcx /* 4th arg: always 0 */
|
||||
mov $main,%rdi /* 1st arg: application entry ip */
|
||||
call __libc_start_main /* musl init will run the program */
|
||||
.L0: jmp .L0
|
Loading…
Add table
Add a link
Reference in a new issue