clarify the purpose of this project
[nyanglibc.git] / debug / wcstombs_chk.shared.s
blob841fea582874a20d98a0e8f91f878eca2b2c4597
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 __wcstombs_chk
9 .type __wcstombs_chk, @function
10 __wcstombs_chk:
11 subq $40, %rsp
12 cmpq %rdx, %rcx
13 movq %rsi, 8(%rsp)
14 jb .L5
15 leaq 24(%rsp), %rcx
16 leaq 8(%rsp), %rsi
17 movq $0, 24(%rsp)
18 call __wcsrtombs
19 addq $40, %rsp
20 ret
21 .p2align 4,,10
22 .p2align 3
23 .L5:
24 call __GI___chk_fail
25 .size __wcstombs_chk, .-__wcstombs_chk
26 .hidden __wcsrtombs