summaryrefslogtreecommitdiff
path: root/packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch')
-rw-r--r--packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch b/packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch
index e69de29bb2..660be1e140 100644
--- a/packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch
+++ b/packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch
@@ -0,0 +1,19 @@
+--- glibc-2.3.2/elf/cache.c.orig 2003-10-24 19:57:55.000000000 -0400
++++ glibc-2.3.2/elf/cache.c 2003-10-24 20:06:06.000000000 -0400
+@@ -246,6 +246,16 @@ int compare (const struct cache_entry *e
+ return 1;
+ else if (e1->flags > e2->flags)
+ return -1;
++#ifdef USE_TLS
++ /* ld.so doesn't sort by "most specific hwcap". It searches based on
++ the numbering of the bits, and TLS takes precedence. This still
++ doesn't bring us in line with ld.so, but it does bring us closer -
++ close enough for Debian's current needs. */
++ else if ((e2->hwcap & (1ULL << 63)) && ! (e1->hwcap & (1ULL << 63)))
++ return 1;
++ else if ((e1->hwcap & (1ULL << 63)) && ! (e2->hwcap & (1ULL << 63)))
++ return -1;
++#endif
+ /* Sort by most specific hwcap. */
+ else if (e2->bits_hwcap > e1->bits_hwcap)
+ return 1;