clarify the purpose of this project
[nyanglibc.git] / misc / chflags.s
blobc05f0e3e5fe4b0e52418bddf64fe7eb6fd409932
1 .text
2 #APP
3 .section .gnu.glibc-stub.chflags
4 .previous
5 .section .gnu.warning.chflags
6 .previous
7 #NO_APP
8 .p2align 4,,15
9 .globl chflags
10 .type chflags, @function
11 chflags:
12 testq %rdi, %rdi
13 movq __libc_errno@gottpoff(%rip), %rax
14 je .L5
15 movl $38, %fs:(%rax)
16 movl $-1, %eax
17 ret
18 .p2align 4,,10
19 .p2align 3
20 .L5:
21 movl $22, %fs:(%rax)
22 movl $-1, %eax
23 ret
24 .size chflags, .-chflags
25 .section .gnu.warning.chflags
26 #,"a",@progbits
27 .align 32
28 .type __evoke_link_warning_chflags, @object
29 .size __evoke_link_warning_chflags, 48
30 __evoke_link_warning_chflags:
31 .string "chflags is not implemented and will always fail"