This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.22-376-gd95453e
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 Oct 2015 13:49:01 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.22-376-gd95453e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via d95453ef5d9fccac44ab3d4a161d917e7ef6231f (commit)
from d3d9c95aefded7716d037e241f9d23a1cccab45a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d95453ef5d9fccac44ab3d4a161d917e7ef6231f
commit d95453ef5d9fccac44ab3d4a161d917e7ef6231f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Oct 14 06:33:24 2015 -0700
Avoid PLT when calling __sched_getaffinity_new
This patch adds an internal entry for __sched_getaffinity_new so that
__sched_getaffinity_old calls __sched_getaffinity_new without going
through PLT.
[BZ #18822]
* sysdeps/unix/sysv/linux/sched_getaffinity.c
(__sched_getaffinity_new): Add libc_hidden_proto and
libc_hidden_def.
diff --git a/ChangeLog b/ChangeLog
index 6cc7224..74f413c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2015-10-14 H.J. Lu <hongjiu.lu@intel.com>
+ [BZ #18822]
+ * sysdeps/unix/sysv/linux/sched_getaffinity.c
+ (__sched_getaffinity_new): Add libc_hidden_proto and
+ libc_hidden_def.
+
+2015-10-14 H.J. Lu <hongjiu.lu@intel.com>
+
[BZ #19007]
* scripts/localplt.awk: Also allow GOT references.
* sysdeps/unix/sysv/linux/i386/localplt.data: Mark
diff --git a/sysdeps/unix/sysv/linux/sched_getaffinity.c b/sysdeps/unix/sysv/linux/sched_getaffinity.c
index 9850806..a37573f 100644
--- a/sysdeps/unix/sysv/linux/sched_getaffinity.c
+++ b/sysdeps/unix/sysv/linux/sched_getaffinity.c
@@ -25,6 +25,11 @@
#ifdef __NR_sched_getaffinity
+# if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)
+extern int __sched_getaffinity_new (pid_t, size_t, cpu_set_t *);
+libc_hidden_proto (__sched_getaffinity_new)
+# endif
+
int
__sched_getaffinity_new (pid_t pid, size_t cpusetsize, cpu_set_t *cpuset)
{
@@ -44,6 +49,8 @@ versioned_symbol (libc, __sched_getaffinity_new, sched_getaffinity,
# if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)
+libc_hidden_def (__sched_getaffinity_new)
+
int
attribute_compat_text_section
__sched_getaffinity_old (pid_t pid, cpu_set_t *cpuset)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
sysdeps/unix/sysv/linux/sched_getaffinity.c | 7 +++++++
2 files changed, 14 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources