aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:50:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:51:11 -0700
commit4587a421c54a8912b3e24913c7e1501293042b40 (patch)
tree21ff4ebe25d895d5c55ebbc59a33d0f1603b7e2a /ChangeLog
parent9635ce69626bfe41196bdef8efe4aba8d8a7b58f (diff)
downloadglibc-4587a421c54a8912b3e24913c7e1501293042b40.zip
glibc-4587a421c54a8912b3e24913c7e1501293042b40.tar.gz
glibc-4587a421c54a8912b3e24913c7e1501293042b40.tar.bz2
Mark internal dirent functions with attribute_hidden [BZ #18822]
Mark internal dirent functions with attribute_hidden to allow direct access within libc.so and libc.a without using GOT nor PLT. __readdir64 is hidden with libc_hidden_proto and libc_hidden_def since the exported readdir64 is an alias of __readdir64. [BZ #18822] * include/dirent.h (__opendir): Always add attribute_hidden. (__fdopendir): Likewise. (__closedir): Likewise. (__readdir): Likewise. (__readdir64): Add libc_hidden_proto. * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def. * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise. * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64): New alias.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 98d572b..628b114 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,20 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
+ * include/dirent.h (__opendir): Always add attribute_hidden.
+ (__fdopendir): Likewise.
+ (__closedir): Likewise.
+ (__readdir): Likewise.
+ (__readdir64): Add libc_hidden_proto.
+ * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
+ * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
+ * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
+ * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
+ New alias.
+
+2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ [BZ #18822]
* include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
* include/netdb.h (__gethostbyaddr_r): Likewise.
(__gethostbyname_r): Likewise.