clarify the purpose of this project
[nyanglibc.git] / csu / start.s
blob0209234744cc49df6056aafa02557a21764ef694
1 .globl _start
2 .type _start,@function
3 .align 1<<4
4 _start:
5 xorl %ebp, %ebp
6 mov %rdx, %r9
7 popq %rsi
8 mov %rsp, %rdx
9 and $~15, %rsp
10 pushq %rax
11 pushq %rsp
12 mov __libc_csu_fini@GOTPCREL(%rip), %r8
13 mov __libc_csu_init@GOTPCREL(%rip), %rcx
14 mov main@GOTPCREL(%rip), %rdi
15 call *__libc_start_main@GOTPCREL(%rip)
16 hlt
17 .size _start,.-_start;
18 .data
19 .globl __data_start
20 __data_start:
21 .long 0
22 .weak data_start
23 data_start = __data_start