[PATCH 17/58] Mark internal dirent functions with attribute_hidden [BZ #18822]

H.J. Lu hjl.tools@gmail.com
Sun Oct 1 22:23:00 GMT 2017


On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.

Tested with build-many-glibcs.py.  I am checking it in.

-- 
H.J.



More information about the Libc-alpha mailing list