summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rwxr-xr-xlibc/misc/auxvt/getauxval.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libc/misc/auxvt/getauxval.c b/libc/misc/auxvt/getauxval.c
index b4e621301..2bdffaf2c 100755
--- a/libc/misc/auxvt/getauxval.c
+++ b/libc/misc/auxvt/getauxval.c
@@ -22,13 +22,18 @@
#include "sys/auxv.h"
-unsigned long int getauxval (unsigned long int __type)
+/*
+ *
+ * aarch64 gcc 11 uses __getauxval() in init_have_lse_atomics()
+ *
+ */
+unsigned long int __getauxval (unsigned long int __type)
{
if ( __type >= AUX_MAX_AT_ID ){
__set_errno (ENOENT);
return 0;
}
-
+
if ( _dl_auxvt[__type].a_type == __type){
return _dl_auxvt[__type].a_un.a_val;
}
@@ -37,4 +42,7 @@ unsigned long int getauxval (unsigned long int __type)
return 0;
}
+unsigned long int getauxval (unsigned long int __type){
+ return __getauxval( __type );
+}