about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2017-06-09 14:36:22 -0300
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2017-06-09 14:36:22 -0300
commitd6bd839b9acfe619afa1db67a2882c0ce839861f (patch)
tree1235cd3296065015102bc69f8427e7f4a1c7d82d /include
parenta17973efc647439757388bcbee74d73c550af0e1 (diff)
downloadglibc-d6bd839b9acfe619afa1db67a2882c0ce839861f.tar.gz
glibc-d6bd839b9acfe619afa1db67a2882c0ce839861f.tar.xz
glibc-d6bd839b9acfe619afa1db67a2882c0ce839861f.zip
Add a way to bypass the PLT when calling getauxval
	* include/sys/auxv.h (__getauxval): Add a prototype and its
	libc_hidden_proto.
	* misc/getauxval.c (__getauxval): Use libc_hidden_def.
Diffstat (limited to 'include')
-rw-r--r--include/sys/auxv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/auxv.h b/include/sys/auxv.h
index dede2c36ac..3bab6d05d4 100644
--- a/include/sys/auxv.h
+++ b/include/sys/auxv.h
@@ -1 +1,8 @@
 #include <misc/sys/auxv.h>
+
+#ifndef _ISOMAC
+
+extern __typeof (getauxval) __getauxval;
+libc_hidden_proto (__getauxval)
+
+#endif  /* !_ISOMAC */