clarify the purpose of this project
[nyanglibc.git] / io / readlink.shared.s
blob495a458715b1c3f1318451619c67a9132512f30c
1 .text
2 .globl __readlink
3 .type __readlink,@function
4 .align 1<<4
5 __readlink:
6 movl $89, %eax
7 syscall
8 cmpq $-4095, %rax
9 jae 0f
10 ret
12 movq __libc_errno@GOTTPOFF(%rip), %rcx
13 neg %eax
14 movl %eax, %fs:(%rcx)
15 or $-1, %rax
16 ret
17 .size __readlink,.-__readlink
18 .globl __GI___readlink
19 .set __GI___readlink,__readlink
20 .weak readlink
21 readlink = __readlink
22 .globl __GI_readlink
23 .set __GI_readlink,readlink