mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
i386: Hide __old_readdir64 [BZ #18822]
Hide internal __old_readdir64 function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64): Add libc_hidden_proto. * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64): Add libc_hidden_def.
This commit is contained in:
parent
91695eb14c
commit
c8dfa99c98
@ -1,3 +1,11 @@
|
||||
2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
* sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
|
||||
Add libc_hidden_proto.
|
||||
* sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
|
||||
Add libc_hidden_def.
|
||||
|
||||
2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #21974]
|
||||
|
@ -31,6 +31,7 @@ struct __old_dirent64
|
||||
|
||||
/* Now define the internal interfaces. */
|
||||
extern struct __old_dirent64 *__old_readdir64 (DIR *__dirp);
|
||||
libc_hidden_proto (__old_readdir64);
|
||||
extern int __old_readdir64_r (DIR *__dirp, struct __old_dirent64 *__entry,
|
||||
struct __old_dirent64 **__result);
|
||||
extern __ssize_t __old_getdents64 (int __fd, char *__buf, size_t __nbytes)
|
||||
|
@ -39,5 +39,7 @@ versioned_symbol (libc, __readdir64, readdir64, GLIBC_2_2);
|
||||
|
||||
#include <sysdeps/posix/readdir.c>
|
||||
|
||||
libc_hidden_def (__old_readdir64)
|
||||
|
||||
compat_symbol (libc, __old_readdir64, readdir64, GLIBC_2_1);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user