clarify the purpose of this project
[nyanglibc.git] / debug / strncpy_chk.shared.s
blob1c583ba19932e012c194b3dc611d3995c21a764c
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 __strncpy_chk
9 .type __strncpy_chk, @function
10 __strncpy_chk:
11 cmpq %rdx, %rcx
12 jb .L7
13 jmp __GI_strncpy
14 .p2align 4,,10
15 .p2align 3
16 .L7:
17 subq $8, %rsp
18 call __GI___chk_fail
19 .size __strncpy_chk, .-__strncpy_chk