]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add a way to bypass the PLT when calling getauxval
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 9 Jun 2017 17:36:22 +0000 (14:36 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 9 Jun 2017 17:36:22 +0000 (14:36 -0300)
* include/sys/auxv.h (__getauxval): Add a prototype and its
libc_hidden_proto.
* misc/getauxval.c (__getauxval): Use libc_hidden_def.

ChangeLog
include/sys/auxv.h
misc/getauxval.c

index 519959a91141399395c5afd38e21f5672b269753..82e17d117947e0daac589f5a31c1dd0ea3941df9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-06-09  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+       * include/sys/auxv.h (__getauxval): Add a prototype and its
+       libc_hidden_proto.
+       * misc/getauxval.c (__getauxval): Use libc_hidden_def.
+
 2017-06-09  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #21561]
index dede2c36ac325767e971fbd3f5e268a4248e8489..3bab6d05d43016808ec7551e675042dae4ca3dce 100644 (file)
@@ -1 +1,8 @@
 #include <misc/sys/auxv.h>
+
+#ifndef _ISOMAC
+
+extern __typeof (getauxval) __getauxval;
+libc_hidden_proto (__getauxval)
+
+#endif  /* !_ISOMAC */
index c83fbce054e319a61670b2100c597bd7aec25ab7..14f42982a2130a75e0758ed6a58412887a906760 100644 (file)
@@ -43,3 +43,4 @@ __getauxval (unsigned long int type)
 }
 
 weak_alias (__getauxval, getauxval)
+libc_hidden_def (__getauxval)