clarify the purpose of this project
[nyanglibc.git] / io / openat64_2.s
blobab4ae03433dc38192cde849d33baa93da3981371
1 .text
2 .section .rodata.str1.8,"aMS",@progbits,1
3 .align 8
4 .LC0:
5 .string "invalid openat64 call: O_CREAT or O_TMPFILE without mode"
6 .text
7 .p2align 4,,15
8 .globl __openat64_2
9 .type __openat64_2, @function
10 __openat64_2:
11 testb $64, %dl
12 jne .L2
13 movl %edx, %eax
14 andl $4259840, %eax
15 cmpl $4259840, %eax
16 je .L2
17 xorl %eax, %eax
18 jmp __openat64
19 .L2:
20 leaq .LC0(%rip), %rdi
21 subq $8, %rsp
22 call __fortify_fail
23 .size __openat64_2, .-__openat64_2
24 .hidden __fortify_fail
25 .hidden __openat64