about summary refs log tree commit diff
path: root/elf/dl-symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-symbol.c')
-rw-r--r--elf/dl-symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-symbol.c b/elf/dl-symbol.c
index 22adf4351a..3ae44d6bea 100644
--- a/elf/dl-symbol.c
+++ b/elf/dl-symbol.c
@@ -28,7 +28,7 @@ _dl_symbol_value (struct link_map *map, const char *name)
 {
   ElfW(Addr) loadbase;
   const ElfW(Sym) *ref = NULL;
-  struct link_map *scope[2] = { map, NULL };
-  loadbase = _dl_lookup_symbol (name, &ref, scope, map->l_name, 0);
+  loadbase = _dl_lookup_symbol (name, &ref, map->l_local_scope, map->l_name,
+				0);
   return loadbase + ref->st_value;
 }