clarify the purpose of this project
[nyanglibc.git] / io / linkat.shared.s
blob7c03def849861ced0b4a5ee77f23b8765400a840
1 .text
2 .globl linkat
3 .type linkat,@function
4 .align 1<<4
5 linkat:
6 movq %rcx, %r10
7 movl $265, %eax
8 syscall
9 cmpq $-4095, %rax
10 jae 0f
11 ret
13 movq __libc_errno@GOTTPOFF(%rip), %rcx
14 neg %eax
15 movl %eax, %fs:(%rcx)
16 or $-1, %rax
17 ret
18 .size linkat,.-linkat
19 .globl __GI_linkat
20 .set __GI_linkat,linkat