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.
This commit is contained in:
H.J. Lu 2017-10-01 16:08:25 -07:00
parent 6036fc38bf
commit 3ee8209be7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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> 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822] [BZ #18822]

View File

@ -31,7 +31,7 @@
#define _PATH_DEVPTS _PATH_DEV "pts" #define _PATH_DEVPTS _PATH_DEV "pts"
/* Prototype for function that opens BSD-style master pseudo-terminals. */ /* 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. */ /* Open a master pseudo terminal and return its file descriptor. */
int int