diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-10-08 02:03:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-10-08 02:03:48 +0000 |
commit | f8713e7a0fcc74d9bb3a636def5f4d24c909df4d (patch) | |
tree | b7e3e21474a0c18ad807488e32fc136448032d3e | |
parent | ce0018f15d91ea30062957d1e6784a37919b30e5 (diff) |
Do string comparisos as late as possible during symbol lookup.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r-- | ldso/ldso/dl-hash.c | 4 |
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: |