Some broken software wants to deal with ld.so.cache.
[nyanglibc.git] / iconv / iconv_close.shared.s
blob4b8b029a01740432e5262415be8e571a446bc2f1
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl iconv_close
9 .type iconv_close, @function
10 iconv_close:
11 cmpq $-1, %rdi
12 je .L8
13 subq $8, %rsp
14 call __gconv_close
15 xorl %edi, %edi
16 testl %eax, %eax
17 setne %dil
18 addq $8, %rsp
19 movl %edi, %eax
20 negl %eax
21 ret
22 .p2align 4,,10
23 .p2align 3
24 .L8:
25 movq __libc_errno@gottpoff(%rip), %rax
26 movl $9, %fs:(%rax)
27 movl %edi, %eax
28 ret
29 .size iconv_close, .-iconv_close
30 .hidden __gconv_close