clarify the purpose of this project
[nyanglibc.git] / csu / start.shared.s
blobced43db318afbe1caa0815da3624661b8c94e5ab
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 .data
18 .globl __data_start
19 __data_start:
20 .long 0
21 .weak data_start
22 data_start = __data_start