aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:08:25 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:08:42 -0700
commit3ee8209be761210dc6a8f121fd79231e7f364a9b (patch)
tree9e7b20123e7051c6b6bd496c96fb1b76aef6dc05
parent6036fc38bf50d61ac5f09a435ce4622b586238ed (diff)
downloadglibc-3ee8209be761210dc6a8f121fd79231e7f364a9b.tar
glibc-3ee8209be761210dc6a8f121fd79231e7f364a9b.tar.gz
glibc-3ee8209be761210dc6a8f121fd79231e7f364a9b.tar.bz2
glibc-3ee8209be761210dc6a8f121fd79231e7f364a9b.zip
Hide internal __bsd_getpt function [BZ #18822]
Hide internal __bsd_getpt function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add attribute_hidden.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/unix/sysv/linux/getpt.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a09d16ba7..396cf74ef8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
+ * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
+ attribute_hidden.
+
+2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ [BZ #18822]
* libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/sysdeps/unix/sysv/linux/getpt.c b/sysdeps/unix/sysv/linux/getpt.c
index a92b8f988d..da3df47cd6 100644
--- a/sysdeps/unix/sysv/linux/getpt.c
+++ b/sysdeps/unix/sysv/linux/getpt.c
@@ -31,7 +31,7 @@
#define _PATH_DEVPTS _PATH_DEV "pts"
/* Prototype for function that opens BSD-style master pseudo-terminals. */
-int __bsd_getpt (void);
+extern int __bsd_getpt (void) attribute_hidden;
/* Open a master pseudo terminal and return its file descriptor. */
int