summaryrefslogtreecommitdiff
path: root/glibc/glibc-2.3.2/glibc23-cmov.patch
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-12-19 22:31:24 +0000
committerChris Larson <clarson@kergoth.com>2003-12-19 22:31:24 +0000
commit5496e81f106aefb7ad2e9bed4ee898a1e3f8d9be (patch)
treed930d5d96991aeb12b53bda5ebc265b86fc7bfa0 /glibc/glibc-2.3.2/glibc23-cmov.patch
parent4c0bfe156e42601fe75fcdfb6e36d4e6b7197451 (diff)
Fixups for the glibc build. Install the kernel headers into sys-include in glibc-initial as well as glibc to fix a problem with building an i386-linux crosscompiler. Also import a newer glibc 2.3.2 patchset from debian
's package pool. BKrev: 3fe37c3cgArHHqFEDVnEZyqfCf4ovQ
Diffstat (limited to 'glibc/glibc-2.3.2/glibc23-cmov.patch')
-rw-r--r--glibc/glibc-2.3.2/glibc23-cmov.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/glibc/glibc-2.3.2/glibc23-cmov.patch b/glibc/glibc-2.3.2/glibc23-cmov.patch
index e69de29bb2..73b20dd225 100644
--- a/glibc/glibc-2.3.2/glibc23-cmov.patch
+++ b/glibc/glibc-2.3.2/glibc23-cmov.patch
@@ -0,0 +1,36 @@
+--- libc/sysdeps/unix/sysv/linux/i386/dl-procinfo.h 2002-09-22 06:14:11.000000000 +0900
++++ libc/sysdeps/unix/sysv/linux/i386/dl-procinfo.h.new 2003-01-19 01:18:55.000000000 +0900
+@@ -92,7 +92,7 @@
+ HWCAP_I386_AMD3D = 1 << 31,
+
+ /* XXX Which others to add here? */
+- HWCAP_IMPORTANT = (HWCAP_I386_MMX)
++ HWCAP_IMPORTANT = (HWCAP_I386_MMX | HWCAP_I386_CMOV)
+
+ };
+
+--- libc/sysdeps/generic/dl-cache.c 2003-02-02 05:33:47.000000000 +0900
++++ libc/sysdeps/generic/dl-cache.c.new1 2003-02-21 09:18:19.000000000 +0900
+@@ -260,6 +260,12 @@
+ if (platform != (uint64_t) -1)
+ platform = 1ULL << platform;
+
++#ifdef USE_TLS
++# define TLS_BIT (1ULL << 63)
++#else
++# define TLS_BIT 0
++#endif
++
+ /* Only accept hwcap if it's for the right platform. */
+ #define HWCAP_CHECK \
+ if (GL(dl_osversion) \
+@@ -271,7 +277,8 @@
+ && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform) \
+ continue; \
+ if (hwcap \
+- && ((lib->hwcap & *hwcap & ~_DL_HWCAP_PLATFORM) > *hwcap)) \
++ && ((lib->hwcap & ~_DL_HWCAP_PLATFORM & (*hwcap | TLS_BIT)) < \
++ (lib->hwcap & ~_DL_HWCAP_PLATFORM))) \
+ continue
+ SEARCH_CACHE (cache_new);
+ }