public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Tulio Magno Quites Machado Filho" <tuliom@linux.vnet.ibm.com>
To: libc-alpha@sourceware.org
Cc: pc@us.ibm.com, joseph@codesourcery.com
Subject: [PATCHv2] Add a way to bypass the PLT when calling getauxval
Date: Thu, 25 May 2017 20:06:00 -0000	[thread overview]
Message-ID: <1495742765-1722-1-git-send-email-tuliom@linux.vnet.ibm.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1705241951001.9182@digraph.polyomino.org.uk>

2017-05-25  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.
---
 include/sys/auxv.h | 7 +++++++
 misc/getauxval.c   | 1 +
 2 files changed, 8 insertions(+)

diff --git a/include/sys/auxv.h b/include/sys/auxv.h
index dede2c3..d46008e 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 */
diff --git a/misc/getauxval.c b/misc/getauxval.c
index c83fbce..14f4298 100644
--- a/misc/getauxval.c
+++ b/misc/getauxval.c
@@ -43,3 +43,4 @@ __getauxval (unsigned long int type)
 }
 
 weak_alias (__getauxval, getauxval)
+libc_hidden_def (__getauxval)
-- 
2.1.0

  parent reply	other threads:[~2017-05-25 20:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24 19:42 [PATCH] " Tulio Magno Quites Machado Filho
2017-05-24 19:52 ` Joseph Myers
2017-05-24 21:43   ` Tulio Magno Quites Machado Filho
2017-05-25 20:06   ` Tulio Magno Quites Machado Filho [this message]
2017-06-09 13:14     ` [PATCHv2] " Tulio Magno Quites Machado Filho
2017-06-09 13:29       ` H.J. Lu
2017-06-09 13:34         ` Florian Weimer
2017-06-09 13:33     ` Florian Weimer
2017-06-09 15:01       ` Tulio Magno Quites Machado Filho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495742765-1722-1-git-send-email-tuliom@linux.vnet.ibm.com \
    --to=tuliom@linux.vnet.ibm.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=pc@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).