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