Hide internal __bsd_getpt function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:08:25 +0000 (16:08 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:08:42 +0000 (16:08 -0700)
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.

ChangeLog
sysdeps/unix/sysv/linux/getpt.c

index 8a09d16..396cf74 100644 (file)
--- 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>
index a92b8f9..da3df47 100644 (file)
@@ -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