clarify the purpose of this project
[nyanglibc.git] / debug / strncpy_chk.s
blob7ac2c1887821c12ea06d9691f35d0884b014b082
1 .text
2 .p2align 4,,15
3 .globl __strncpy_chk
4 .type __strncpy_chk, @function
5 __strncpy_chk:
6 cmpq %rdx, %rcx
7 jb .L7
8 jmp strncpy
9 .p2align 4,,10
10 .p2align 3
11 .L7:
12 subq $8, %rsp
13 call __chk_fail
14 .size __strncpy_chk, .-__strncpy_chk
15 .hidden __chk_fail
16 .hidden strncpy