]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but cvs/fedora-glibc-20060919T1816 cvs/fedora-glibc-20060919T1847
authorUlrich Drepper <drepper@redhat.com>
Tue, 19 Sep 2006 17:07:04 +0000 (17:07 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 19 Sep 2006 17:07:04 +0000 (17:07 +0000)
platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
bits.

ChangeLog
elf/dl-cache.c

index 5520fce35da9fa67ebbe96547c9072521bcfdf8d..71359229adc96ac0aa0942ee2a05c31af3dfac5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
+       platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
+       bits.
+
 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
 
        * elf/dl-close.c (_dl_close): If dependency is not unloaded make
index 29886e194a40214873c2b689512421b6058c6d38..fc7d9916c6fe52d0cc3959e4bdc4a3168f558c1d 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for reading /etc/ld.so.cache files written by Linux ldconfig.
-   Copyright (C) 1996-2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1996-2002, 2003, 2004, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -264,7 +264,7 @@ _dl_load_cache_lookup (const char *name)
 #define HWCAP_CHECK \
       if (GLRO(dl_osversion) && lib->osversion > GLRO(dl_osversion))         \
        continue;                                                             \
-      if (_DL_PLATFORMS_COUNT && platform != -1                                      \
+      if (_DL_PLATFORMS_COUNT                                                \
          && (lib->hwcap & _DL_HWCAP_PLATFORM) != 0                           \
          && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform)                   \
        continue;                                                             \