clarify the purpose of this project
[nyanglibc.git] / debug / getgroups_chk.shared.s
blob5916ee9d4941f4e2e8af655966c50f8667fecaf6
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 __getgroups_chk
9 .type __getgroups_chk, @function
10 __getgroups_chk:
11 testl %edi, %edi
12 js .L6
13 movslq %edi, %rax
14 salq $2, %rax
15 cmpq %rdx, %rax
16 ja .L11
17 jmp __getgroups
18 .p2align 4,,10
19 .p2align 3
20 .L6:
21 movq __libc_errno@gottpoff(%rip), %rax
22 movl $22, %fs:(%rax)
23 movl $-1, %eax
24 ret
25 .p2align 4,,10
26 .p2align 3
27 .L11:
28 subq $8, %rsp
29 call __GI___chk_fail
30 .size __getgroups_chk, .-__getgroups_chk
31 .hidden __getgroups