about summary refs log tree commit diff
path: root/misc/writev.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:53:52 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:54:10 -0700
commitd6daff12617290d4dfb499ed8425d33a48d844ba (patch)
tree8cc815db5ac1558ecd139ec7c9cece391865b48c /misc/writev.c
parentb68f8620561d7658b475eb512978d3c33d8a4547 (diff)
downloadglibc-d6daff12617290d4dfb499ed8425d33a48d844ba.tar.gz
glibc-d6daff12617290d4dfb499ed8425d33a48d844ba.tar.xz
glibc-d6daff12617290d4dfb499ed8425d33a48d844ba.zip
Hide __readv and __writev [BZ #18822]
Hide internal __readv and __writev functions to allow direct access
within libc.so and libc.a without using GOT nor PLT.

	[BZ #18822]
	* include/sys/uio.h (__readv): Add libc_hidden_proto.
	(__writev): Likewise.
	* misc/readv.c (__readv): Add libc_hidden_def.
	* misc/writev.c (__writev): Likewise.
	* sysdeps/posix/readv.c (__readv): Likewise.
	* sysdeps/posix/writev.c (__writev): Likewise.
	* sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
	(__readv): Likewise.
	* sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
	(__writev): Likewise.
Diffstat (limited to 'misc/writev.c')
-rw-r--r--misc/writev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/writev.c b/misc/writev.c
index c8d222e04f..8bd2eddf1a 100644
--- a/misc/writev.c
+++ b/misc/writev.c
@@ -30,6 +30,7 @@ __writev (int fd, const struct iovec *vector, int count)
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__writev)
 weak_alias (__writev, writev)
 
 stub_warning (writev)