File: //usr/src/glibc/debian/patches/hurd-i386/unsubmitted-getaux_at_secure.diff
FIXME: sysdeps/mach/hurd/i386/init-first.c should instead pass an auxv
to __libc_start_main
Index: glibc-2.28/misc/getauxval.c
===================================================================
--- glibc-2.28.orig/misc/getauxval.c
+++ glibc-2.28/misc/getauxval.c
@@ -18,6 +18,7 @@
#include <sys/auxv.h>
#include <errno.h>
#include <ldsodefs.h>
+#include <unistd.h>
unsigned long int
@@ -27,6 +28,11 @@ __getauxval (unsigned long int type)
ElfW(auxv_t) *p;
#endif
+#ifdef AT_SECURE
+ if (type == AT_SECURE)
+ return __libc_enable_secure;
+#endif
+
#ifdef AT_HWCAP
if (type == AT_HWCAP)
return GLRO(dl_hwcap);