]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i386: Hide __old_glob64 [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 20 Aug 2017 17:46:47 +0000 (10:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 20 Aug 2017 17:47:02 +0000 (10:47 -0700)
Hide internal __old_glob64 function to allow direct access within
libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
libc_hidden_proto and libc_hidden_def.

ChangeLog
sysdeps/unix/sysv/linux/i386/glob64.c

index 5d16204f5c52fe705be6a5050a1df20db193c996..170d3ac928c71f2860708ae523e982392fe43851 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
+       libc_hidden_proto and libc_hidden_def.
+
 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index f68195137ebbe20bfe84e78362bf9159bb1bbaa1..956cb0474a965120f865ecf92d10e6182998a4ed 100644 (file)
@@ -53,6 +53,7 @@ libc_hidden_ver (__glob64, glob64)
 int __old_glob64 (const char *__pattern, int __flags,
                  int (*__errfunc) (const char *, int),
                  glob64_t *__pglob);
+libc_hidden_proto (__old_glob64);
 
 #undef dirent
 #define dirent __old_dirent64
@@ -72,5 +73,7 @@ int __old_glob64 (const char *__pattern, int __flags,
 
 #include <posix/glob.c>
 
+libc_hidden_def (__old_glob64);
+
 compat_symbol (libc, __old_glob64, glob64, GLIBC_2_1);
 #endif