summary refs log tree commit diff
path: root/sysdeps/mach/hurd/setrlimit.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:46:39 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:46:54 -0700
commitdd3121df08d5ee44ba770d12365022aa802fb364 (patch)
tree679bb661f8835c1ba69229daad5b4f3b8c838e32 /sysdeps/mach/hurd/setrlimit.c
parent047d1a81fd82db4cd7458fec37230f3b31b414e9 (diff)
downloadglibc-dd3121df08d5ee44ba770d12365022aa802fb364.tar.gz
glibc-dd3121df08d5ee44ba770d12365022aa802fb364.tar.xz
glibc-dd3121df08d5ee44ba770d12365022aa802fb364.zip
Hide internal __setrlimit function [BZ #18822]
Hide internal __setrlimit function to allow direct access within libc.so
and libc.a without using GOT nor PLT.

	[BZ #18822]
	* include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
	* resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
	* sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
	* sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
	* sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
Diffstat (limited to 'sysdeps/mach/hurd/setrlimit.c')
-rw-r--r--sysdeps/mach/hurd/setrlimit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/setrlimit.c b/sysdeps/mach/hurd/setrlimit.c
index 3ea9af2e7c..693422a537 100644
--- a/sysdeps/mach/hurd/setrlimit.c
+++ b/sysdeps/mach/hurd/setrlimit.c
@@ -53,4 +53,5 @@ __setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
   return 0;
 }
 
+libc_hidden_def (__setrlimit)
 weak_alias (__setrlimit, setrlimit)