diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/glibc/glibc-2.3.2/ldso-disable-hwcap.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/glibc/glibc-2.3.2/ldso-disable-hwcap.patch')
-rw-r--r-- | packages/glibc/glibc-2.3.2/ldso-disable-hwcap.patch | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/packages/glibc/glibc-2.3.2/ldso-disable-hwcap.patch b/packages/glibc/glibc-2.3.2/ldso-disable-hwcap.patch deleted file mode 100644 index 5538d20672..0000000000 --- a/packages/glibc/glibc-2.3.2/ldso-disable-hwcap.patch +++ /dev/null @@ -1,62 +0,0 @@ ---- glibc-2.3.2/sysdeps/generic/dl-sysdep.c.orig 2003-10-28 12:22:33.000000000 -0500 -+++ glibc-2.3.2/sysdeps/generic/dl-sysdep.c 2003-10-28 12:38:49.000000000 -0500 -@@ -354,7 +354,11 @@ _dl_important_hwcaps (const char *platfo - #ifdef USE_TLS - /* For TLS enabled builds always add 'tls'. */ - ++cnt; --#else -+#endif -+ -+ if (__access ("/etc/ld.so.nohwcap", F_OK) == 0) -+ cnt = 0; -+ - if (cnt == 0) - { - /* If we have platform name and no important capability we only have -@@ -369,7 +373,6 @@ _dl_important_hwcaps (const char *platfo - *sz = 1; - return result; - } --#endif - - /* Create temporary data structure to generate result table. */ - temp = (struct r_strlenpair *) alloca (cnt * sizeof (*temp)); -@@ -411,9 +414,7 @@ _dl_important_hwcaps (const char *platfo - result = (struct r_strlenpair *) malloc (*sz * sizeof (*result) + total); - if (result == NULL) - { --#ifndef USE_TLS - no_memory: --#endif - INTUSE(_dl_signal_error) (ENOMEM, NULL, NULL, - N_("cannot create capability list")); - } ---- glibc-2.3.2/sysdeps/generic/dl-cache.c.orig 2003-10-28 12:32:36.000000000 -0500 -+++ glibc-2.3.2/sysdeps/generic/dl-cache.c 2003-10-28 12:38:57.000000000 -0500 -@@ -246,6 +246,7 @@ _dl_load_cache_lookup (const char *name) - /* This file ends in static libraries where we don't have a hwcap. */ - unsigned long int *hwcap; - uint64_t platform; -+ int disable_hwcap = 0; - #ifndef SHARED - weak_extern (_dl_hwcap); - #endif -@@ -261,6 +262,9 @@ _dl_load_cache_lookup (const char *name) - if (platform != (uint64_t) -1) - platform = 1ULL << platform; - -+ if (__access ("/etc/ld.so.nohwcap", F_OK) == 0) -+ disable_hwcap = 1; -+ - #ifdef USE_TLS - # define TLS_BIT (1ULL << 63) - #else -@@ -272,6 +276,8 @@ _dl_load_cache_lookup (const char *name) - if (GL(dl_osversion) \ - && cache_new->libs[middle].osversion > GL(dl_osversion)) \ - continue; \ -+ if (disable_hwcap && lib->hwcap != 0) \ -+ continue; \ - if (_DL_PLATFORMS_COUNT && platform != -1 \ - && (lib->hwcap & _DL_HWCAP_PLATFORM) != 0 \ - && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform) \ |