clarify the purpose of this project
[nyanglibc.git] / posix / _exit.shared.s
blobb5d43ec24687c5e16a37ab4334a35c75f7204d22
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 __GI__exit
9 .hidden __GI__exit
10 .type __GI__exit, @function
11 __GI__exit:
12 movl %edi, %edx
13 movq __libc_errno@gottpoff(%rip), %r9
14 movl $231, %r8d
15 movl $60, %esi
16 jmp .L4
17 .p2align 4,,10
18 .p2align 3
19 .L2:
20 movl %edx, %edi
21 movl %esi, %eax
22 #APP
23 # 31 "../sysdeps/unix/sysv/linux/_exit.c" 1
24 syscall
26 # 0 "" 2
27 #NO_APP
28 cmpq $-4096, %rax
29 ja .L6
30 .L3:
31 #APP
32 # 34 "../sysdeps/unix/sysv/linux/_exit.c" 1
33 hlt
34 # 0 "" 2
35 #NO_APP
36 .L4:
37 movl %edx, %edi
38 movl %r8d, %eax
39 #APP
40 # 30 "../sysdeps/unix/sysv/linux/_exit.c" 1
41 syscall
43 # 0 "" 2
44 #NO_APP
45 cmpq $-4096, %rax
46 jbe .L2
47 negl %eax
48 movl %eax, %fs:(%r9)
49 jmp .L2
50 .p2align 4,,10
51 .p2align 3
52 .L6:
53 negl %eax
54 movl %eax, %fs:(%r9)
55 jmp .L3
56 .size __GI__exit, .-__GI__exit
57 .globl _exit
58 .set _exit,__GI__exit
59 .weak _Exit
60 .set _Exit,_exit