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