diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 18:03:46 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 18:03:59 -0700 |
commit | d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3 (patch) | |
tree | ff8d862f89d6ca8b20682e7e7b6c51117f5aab1f | |
parent | c0769f7031b8293e7dc2762bff98d75691fe6a0d (diff) | |
download | glibc-d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3.tar.gz glibc-d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3.tar.xz glibc-d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3.zip |
Hide internal __sched_setaffinity_new function [BZ #18822]
Hide internal __sched_setaffinity_new function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * sysdeps/unix/sysv/linux/sched_setaffinity.c (__sched_setaffinity_new): Add libc_hidden_proto and libc_hidden_def.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sched_setaffinity.c | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 5d417cb4eb..567a258cc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,13 @@ 2017-10-01 H.J. Lu <hongjiu.lu@intel.com> [BZ #18822] + * sysdeps/unix/sysv/linux/sched_setaffinity.c + (__sched_setaffinity_new): Add libc_hidden_proto and + libc_hidden_def. + +2017-10-01 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #18822] * include/glob.h (__glob64): Add libc_hidden_proto. * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add libc_hidden_def. diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c index 8854e72c67..9a40b581ae 100644 --- a/sysdeps/unix/sysv/linux/sched_setaffinity.c +++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c @@ -26,6 +26,9 @@ #ifdef __NR_sched_setaffinity +extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *); +libc_hidden_proto (__sched_setaffinity_new) + int __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) { @@ -38,6 +41,7 @@ __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) return result; } +libc_hidden_def (__sched_setaffinity_new) versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity, GLIBC_2_3_4); |