diff options
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/dynlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c index d963aea..a773b78 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -1978,7 +1978,7 @@ int dladdr(const void *addr_arg, Dl_info *info) && (1<<(sym->st_info&0xf) & OK_TYPES) && (1<<(sym->st_info>>4) & OK_BINDS)) { size_t symaddr = (size_t)laddr(p, sym->st_value); - if (symaddr > addr || symaddr < best) + if (symaddr > addr || symaddr <= best) continue; best = symaddr; bestsym = sym; |