clarify the purpose of this project
[nyanglibc.git] / misc / init-misc.shared.s
blob5ba5ae4c0ba169babfa8760aff665eb2afed26cf
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __init_misc
9 .hidden __init_misc
10 .type __init_misc, @function
11 __init_misc:
12 testq %rsi, %rsi
13 je .L12
14 pushq %rbp
15 pushq %rbx
16 subq $8, %rsp
17 movq (%rsi), %rbp
18 testq %rbp, %rbp
19 je .L1
20 movq %rsi, %rbx
21 movq %rbp, %rdi
22 movl $47, %esi
23 call __GI_strrchr
24 testq %rax, %rax
25 je .L16
26 movq __progname@GOTPCREL(%rip), %rdx
27 addq $1, %rax
28 movq %rax, (%rdx)
29 .L4:
30 movq (%rbx), %rdx
31 movq __progname_full@GOTPCREL(%rip), %rax
32 movq %rdx, (%rax)
33 .L1:
34 addq $8, %rsp
35 popq %rbx
36 popq %rbp
37 ret
38 .p2align 4,,10
39 .p2align 3
40 .L12:
41 rep ret
42 .p2align 4,,10
43 .p2align 3
44 .L16:
45 movq __progname@GOTPCREL(%rip), %rax
46 movq %rbp, (%rax)
47 jmp .L4
48 .size __init_misc, .-__init_misc
49 .globl __progname
50 .section .rodata.str1.1,"aMS",@progbits,1
51 .LC0:
52 .string ""
53 .section .data.rel.local,"aw",@progbits
54 .align 8
55 .type __progname, @object
56 .size __progname, 8
57 __progname:
58 .quad .LC0
59 .weak program_invocation_short_name
60 .set program_invocation_short_name,__progname
61 .globl __progname_full
62 .align 8
63 .type __progname_full, @object
64 .size __progname_full, 8
65 __progname_full:
66 .quad .LC0
67 .weak program_invocation_name
68 .set program_invocation_name,__progname_full