clarify the purpose of this project
[nyanglibc.git] / debug / getwd_chk.shared.s
blobe71f4dba4ff16e0cfd5d4408d30d45ee7da6618d
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section .gnu.warning.getwd
7 .previous
8 #NO_APP
9 .p2align 4,,15
10 .globl __getwd_chk
11 .type __getwd_chk, @function
12 __getwd_chk:
13 subq $8, %rsp
14 call __GI___getcwd
15 testq %rax, %rax
16 je .L5
17 .L1:
18 addq $8, %rsp
19 ret
20 .p2align 4,,10
21 .p2align 3
22 .L5:
23 movq __libc_errno@gottpoff(%rip), %rdx
24 cmpl $34, %fs:(%rdx)
25 jne .L1
26 call __GI___chk_fail
27 .size __getwd_chk, .-__getwd_chk
28 .section .gnu.warning.getwd
29 #,"a",@progbits
30 .align 32
31 .type __evoke_link_warning_getwd, @object
32 .size __evoke_link_warning_getwd, 58
33 __evoke_link_warning_getwd:
34 .string "the `getwd' function is dangerous and should not be used."