clarify the purpose of this project
[nyanglibc.git] / debug / wcrtomb_chk.shared.s
blob300d6411c879a1ed02ebb24c9dc3d6e3e5c5d124
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 __wcrtomb_chk
9 .type __wcrtomb_chk, @function
10 __wcrtomb_chk:
11 movq __libc_tsd_LOCALE@gottpoff(%rip), %rax
12 movq %fs:(%rax), %rax
13 movq (%rax), %rax
14 movl 168(%rax), %eax
15 cmpq %rcx, %rax
16 ja .L7
17 jmp __wcrtomb
18 .L7:
19 subq $8, %rsp
20 call __GI___chk_fail
21 .size __wcrtomb_chk, .-__wcrtomb_chk
22 .hidden __wcrtomb