clarify the purpose of this project
[nyanglibc.git] / io / rtld-read_nocancel.shared.s
blob65f13dce611ecd9b8824a2590b997bc85b4e7927
1 .text
2 .p2align 4,,15
3 .globl __GI___read_nocancel
4 .hidden __GI___read_nocancel
5 .type __GI___read_nocancel, @function
6 __GI___read_nocancel:
7 xorl %eax, %eax
8 #APP
9 # 26 "../sysdeps/unix/sysv/linux/read_nocancel.c" 1
10 syscall
12 # 0 "" 2
13 #NO_APP
14 cmpq $-4096, %rax
15 ja .L4
16 rep ret
17 .p2align 4,,10
18 .p2align 3
19 .L4:
20 negl %eax
21 movl %eax, rtld_errno(%rip)
22 movq $-1, %rax
23 ret
24 .size __GI___read_nocancel, .-__GI___read_nocancel
25 .globl __read_nocancel
26 .set __read_nocancel,__GI___read_nocancel
27 .hidden rtld_errno