]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.3.2/glibc-2.3.2-ldconfig-tls.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.3.2 / glibc-2.3.2-ldconfig-tls.patch
1 --- glibc-2.3.2/elf/cache.c.orig        2003-10-24 19:57:55.000000000 -0400
2 +++ glibc-2.3.2/elf/cache.c     2003-10-24 20:06:06.000000000 -0400
3 @@ -246,6 +246,16 @@ int compare (const struct cache_entry *e
4         return 1;
5        else if (e1->flags > e2->flags)
6         return -1;
7 +#ifdef USE_TLS
8 +      /* ld.so doesn't sort by "most specific hwcap".  It searches based on
9 +         the numbering of the bits, and TLS takes precedence.  This still
10 +         doesn't bring us in line with ld.so, but it does bring us closer - 
11 +         close enough for Debian's current needs.  */
12 +      else if ((e2->hwcap & (1ULL << 63)) && ! (e1->hwcap & (1ULL << 63)))
13 +        return 1;
14 +      else if ((e1->hwcap & (1ULL << 63)) && ! (e2->hwcap & (1ULL << 63)))
15 +        return -1;
16 +#endif
17        /* Sort by most specific hwcap.  */
18        else if (e2->bits_hwcap > e1->bits_hwcap)
19         return 1;