clarify the purpose of this project
[nyanglibc.git] / nptl / pthread_attr_extension.s
blob22f5e03437f7cd757430b7f7869e0fc7ebb8bc15
1 .text
2 .p2align 4,,15
3 .globl __pthread_attr_extension
4 .hidden __pthread_attr_extension
5 .type __pthread_attr_extension, @function
6 __pthread_attr_extension:
7 cmpq $0, 40(%rdi)
8 je .L2
9 xorl %eax, %eax
10 ret
11 .p2align 4,,10
12 .p2align 3
13 .L2:
14 pushq %rbx
15 movl $1, %esi
16 movq %rdi, %rbx
17 movl $152, %edi
18 call calloc@PLT
19 testq %rax, %rax
20 movq %rax, 40(%rbx)
21 je .L9
22 xorl %eax, %eax
23 popq %rbx
24 ret
25 .p2align 4,,10
26 .p2align 3
27 .L9:
28 movq __libc_errno@gottpoff(%rip), %rax
29 popq %rbx
30 movl %fs:(%rax), %eax
31 ret
32 .size __pthread_attr_extension, .-__pthread_attr_extension