clarify the purpose of this project
[nyanglibc.git] / csu / init-first.s
blob1573b7e908ce9b26c34c32fafcf67b5c98a3fb4e
1 .text
2 .p2align 4,,15
3 .globl __libc_init_first
4 .type __libc_init_first, @function
5 __libc_init_first:
6 pushq %r12
7 pushq %rbp
8 movq %rdx, %r12
9 pushq %rbx
10 movq %rsi, %rbp
11 movl %edi, %ebx
12 movl %edi, __libc_argc(%rip)
13 movq %rsi, __libc_argv(%rip)
14 movq %rdx, __environ(%rip)
15 call _dl_non_dynamic_init
16 movq %r12, %rdx
17 movq %rbp, %rsi
18 movl %ebx, %edi
19 popq %rbx
20 popq %rbp
21 popq %r12
22 jmp __init_misc
23 .size __libc_init_first, .-__libc_init_first
24 .p2align 4,,15
25 .globl _dl_start
26 .type _dl_start, @function
27 _dl_start:
28 subq $8, %rsp
29 call abort
30 .size _dl_start, .-_dl_start
31 .hidden __libc_argv
32 .comm __libc_argv,8,8
33 .hidden __libc_argc
34 .comm __libc_argc,4,4
35 .hidden abort
36 .hidden __init_misc
37 .hidden _dl_non_dynamic_init