Some broken software wants to deal with ld.so.cache.
[nyanglibc.git] / rt / timer_getoverr.s
blob735c37239811af8f20d5b8facd103bd04226d024
1 .text
2 .p2align 4,,15
3 .globl __timer_getoverrun_new
4 .type __timer_getoverrun_new, @function
5 __timer_getoverrun_new:
6 testq %rdi, %rdi
7 movq %rdi, %rax
8 jns .L3
9 addq %rax, %rax
10 movl (%rax), %edi
11 .L3:
12 movl $225, %eax
13 #APP
14 # 35 "../sysdeps/unix/sysv/linux/timer_getoverr.c" 1
15 syscall
17 # 0 "" 2
18 #NO_APP
19 cmpq $-4096, %rax
20 ja .L7
21 rep ret
22 .p2align 4,,10
23 .p2align 3
24 .L7:
25 movq errno@gottpoff(%rip), %rdx
26 negl %eax
27 movl %eax, %fs:(%rdx)
28 movl $-1, %eax
29 ret
30 .size __timer_getoverrun_new, .-__timer_getoverrun_new
31 .weak timer_getoverrun
32 .set timer_getoverrun,__timer_getoverrun_new