summaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 7c2f2e3985..f01bdad525 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -463,7 +463,7 @@ _dl_map_object (struct link_map *loader, const char *name, int type)
/* If the requested name matches the soname of a loaded object,
use that object. */
(l->l_info[DT_SONAME] &&
- ! strcmp (name, (const char *) (l->addr +
+ ! strcmp (name, (const char *) (l->l_addr +
l->l_info[DT_SONAME]->d_un.d_ptr))))
{
/* The object is already loaded.