diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 17:46:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 17:46:54 -0700 |
commit | dd3121df08d5ee44ba770d12365022aa802fb364 (patch) | |
tree | 679bb661f8835c1ba69229daad5b4f3b8c838e32 /include | |
parent | 047d1a81fd82db4cd7458fec37230f3b31b414e9 (diff) | |
download | glibc-dd3121df08d5ee44ba770d12365022aa802fb364.zip glibc-dd3121df08d5ee44ba770d12365022aa802fb364.tar.gz glibc-dd3121df08d5ee44ba770d12365022aa802fb364.tar.bz2 |
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 'include')
-rw-r--r-- | include/sys/resource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h index 688c46c..c55d4e6 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -23,5 +23,6 @@ extern int __getrusage (enum __rusage_who __who, struct rusage *__usage) extern int __setrlimit (enum __rlimit_resource __resource, const struct rlimit *__rlimits); +libc_hidden_proto (__setrlimit); #endif #endif |