clarify the purpose of this project
[nyanglibc.git] / debug / explicit_bzero_chk.shared.s
blob74049f52ed30714265b7a91e92fc2ee3ce2b531b
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 __explicit_bzero_chk
9 .type __explicit_bzero_chk, @function
10 __explicit_bzero_chk:
11 subq $8, %rsp
12 cmpq %rsi, %rdx
13 jb .L5
14 movq %rsi, %rdx
15 xorl %esi, %esi
16 call __GI_memset@PLT
17 addq $8, %rsp
18 ret
19 .p2align 4,,10
20 .p2align 3
21 .L5:
22 call __GI___chk_fail
23 .size __explicit_bzero_chk, .-__explicit_bzero_chk
24 .globl __explicit_bzero_chk_internal
25 .hidden __explicit_bzero_chk_internal
26 .set __explicit_bzero_chk_internal,__explicit_bzero_chk