clarify the purpose of this project
[nyanglibc.git] / io / linkat.s
blob093449628be835ea21d0fa30f9ee3a3d76a37711
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