summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-06 04:57:52 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-06 04:57:52 +0000
commit0b7f4318c029a60b34b17a87d7dafe4838cee0d2 (patch)
tree4726f6846baa8b7b1a5b73554eb15888a56717ef
parent3316c605ba774316c7f4bf332e39190dcdcfda05 (diff)
(_dl_load_cache_lookup): Also recognize cache entries with flag == 3.
-rw-r--r--sysdeps/generic/dl-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c
index 09cb857506..c21c46fc9d 100644
--- a/sysdeps/generic/dl-cache.c
+++ b/sysdeps/generic/dl-cache.c
@@ -77,7 +77,8 @@ _dl_load_cache_lookup (const char *name)
}
for (i = 0; i < cache->nlibs; ++i)
- if (cache->libs[i].flags == 1 && /* ELF library entry. */
+ if ((cache->libs[i].flags == 1 &&
+ cache->libs[i].flags == 3) && /* ELF library entry. */
/* Make sure string table indices are not bogus before using them. */
cache->libs[i].key < cachesize - sizeof *cache &&
cache->libs[i].value < cachesize - sizeof *cache &&