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.23-322-g4facca0
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 13 May 2016 15:29:57 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.23-322-g4facca0
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 4facca0b0e0c99601673056352cd695102872828 (commit)
from 9e4ec3e81614164314bffe648e9446f17adc5fb7 (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=4facca0b0e0c99601673056352cd695102872828
commit 4facca0b0e0c99601673056352cd695102872828
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri May 13 08:29:22 2016 -0700
Call init_cpu_features only if SHARED is defined
In static executable, since init_cpu_features is called early from
__libc_start_main, there is no need to call it again in dl_platform_init.
[BZ #20072]
* sysdeps/i386/dl-machine.h (dl_platform_init): Call
init_cpu_features only if SHARED is defined.
* sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
diff --git a/ChangeLog b/ChangeLog
index 05d0fe7..8ccf928 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
+ [BZ #20072]
+ * sysdeps/i386/dl-machine.h (dl_platform_init): Call
+ init_cpu_features only if SHARED is defined.
+ * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
+
+2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
+
* sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
non-inclusive caches on Intel processors.
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index 130bcf5..4e3968a 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -237,7 +237,11 @@ dl_platform_init (void)
/* Avoid an empty string which would disturb us. */
GLRO(dl_platform) = NULL;
+#ifdef SHARED
+ /* init_cpu_features has been called early from __libc_start_main in
+ static executable. */
init_cpu_features (&GLRO(dl_x86_cpu_features));
+#endif
}
static inline Elf32_Addr
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h
index 980ca73..ed0c1a8 100644
--- a/sysdeps/x86_64/dl-machine.h
+++ b/sysdeps/x86_64/dl-machine.h
@@ -224,7 +224,11 @@ dl_platform_init (void)
/* Avoid an empty string which would disturb us. */
GLRO(dl_platform) = NULL;
+#ifdef SHARED
+ /* init_cpu_features has been called early from __libc_start_main in
+ static executable. */
init_cpu_features (&GLRO(dl_x86_cpu_features));
+#endif
}
static inline ElfW(Addr)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
sysdeps/i386/dl-machine.h | 4 ++++
sysdeps/x86_64/dl-machine.h | 4 ++++
3 files changed, 15 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources