summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/dl-hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/dl-hash.c b/ldso/ldso/dl-hash.c
index 2043c2504..c19afb473 100644
--- a/ldso/ldso/dl-hash.c
+++ b/ldso/ldso/dl-hash.c
@@ -175,12 +175,12 @@ char *_dl_find_hash(const char *name, struct dyn_elf *rpnt, struct elf_resolve *
if (type_class & (sym->st_shndx == SHN_UNDEF))
continue;
- if (_dl_strcmp(strtab + sym->st_name, name) != 0)
- continue;
if (sym->st_value == 0)
continue;
if (ELF_ST_TYPE(sym->st_info) > STT_FUNC)
continue;
+ if (_dl_strcmp(strtab + sym->st_name, name) != 0)
+ continue;
switch (ELF_ST_BIND(sym->st_info)) {
case STB_WEAK: