Mark __xstatXX_conv as hidden

__xstat_conv, __xstat64_conv and __xstat32_conv are internal to glibc.
They should be marked as hidden so that they can't be called without
PLT.

	[BZ #18822]
	* sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
	attribute_hidden.
	(__xstat64_conv): Likewise.
	(__xstat32_conv): Likewise.
This commit is contained in:
H.J. Lu 2015-08-19 04:40:35 -07:00
parent 7e58ab243d
commit 33c898d160
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2015-08-19 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
attribute_hidden.
(__xstat64_conv): Likewise.
(__xstat32_conv): Likewise.
2015-08-19 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View File

@ -17,7 +17,10 @@
<http://www.gnu.org/licenses/>. */
#ifndef STAT_IS_KERNEL_STAT
extern int __xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
extern int __xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
extern int __xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
attribute_hidden;
extern int __xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
attribute_hidden;
#endif
extern int __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf);
extern int __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf)
attribute_hidden;