clarify the purpose of this project
[nyanglibc.git] / io / rtld-lseek64.shared.s
blobed6dc41f928e9fffc82b4fe41382180943e3188e
1 .text
2 .p2align 4,,15
3 .globl __lseek64
4 .hidden __lseek64
5 .type __lseek64, @function
6 __lseek64:
7 movl $8, %eax
8 #APP
9 # 36 "../sysdeps/unix/sysv/linux/lseek64.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 __lseek64, .-__lseek64
25 .weak lseek64
26 .set lseek64,__lseek64
27 .globl __libc_lseek64
28 .set __libc_lseek64,__lseek64
29 .globl __libc_lseek
30 .set __libc_lseek,__lseek64
31 .weak __lseek
32 .hidden __lseek
33 .set __lseek,__lseek64
34 .weak lseek
35 .set lseek,__lseek64
36 .hidden rtld_errno