diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/ldconfig.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 068f43e1b9..9ee5a7d484 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -191,10 +191,12 @@ path_hwcap (const char *path) h = _dl_string_hwcap (ptr + 1); - if (h == -1) - h = _dl_string_platform (ptr + 1); - if (h == -1) - break; + if (h == (uint64_t) -1) + { + h = _dl_string_platform (ptr + 1); + if (h == (uint64_t) -1) + break; + } hwcap += 1ULL << h; /* Search the next part of the path. */ |