]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark __xstatXX_conv as hidden
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Aug 2015 11:40:35 +0000 (04:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Aug 2015 11:41:06 +0000 (04:41 -0700)
__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.

ChangeLog
sysdeps/unix/sysv/linux/xstatconv.h

index 592575b9322b83e6438e739b3666544914fd9bc5..83fef46af22ac95fed2b24fe238c0ae91a4dbf4c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 229e24cbe3f3c13128dd95036d10cba11c7f3f79..d21d9a0ad48dcebd86ab25ea9e23d15ac842d36a 100644 (file)
    <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;