clarify the purpose of this project
[nyanglibc.git] / stdlib / secure-getenv.shared.s
blob742951f554936f5586b8c3a2fc5cc712a5cd9d41
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .symver __libc_secure_getenv,__secure_getenv@GLIBC_2.2.5
7 #NO_APP
8 .p2align 4,,15
9 .globl __GI___libc_secure_getenv
10 .hidden __GI___libc_secure_getenv
11 .type __GI___libc_secure_getenv, @function
12 __GI___libc_secure_getenv:
13 movq __libc_enable_secure@GOTPCREL(%rip), %rax
14 movl (%rax), %eax
15 testl %eax, %eax
16 jne .L2
17 jmp __GI_getenv
18 .p2align 4,,10
19 .p2align 3
20 .L2:
21 xorl %eax, %eax
22 ret
23 .size __GI___libc_secure_getenv, .-__GI___libc_secure_getenv
24 .weak secure_getenv
25 .set secure_getenv,__GI___libc_secure_getenv
26 .weak __libc_secure_getenv
27 .set __libc_secure_getenv,__GI___libc_secure_getenv