summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc/getauxval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/getauxval.c b/src/misc/getauxval.c
index 5ac8b3d2..b846c80f 100644
--- a/src/misc/getauxval.c
+++ b/src/misc/getauxval.c
@@ -5,6 +5,7 @@
unsigned long getauxval(unsigned long item)
{
size_t *auxv = libc.auxv;
+ if (item == AT_SECURE) return libc.secure;
for (; *auxv; auxv+=2)
if (*auxv==item) return auxv[1];
errno = ENOENT;