]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(dlsym:doit): Fix scope and skip maps for _dl_lookup_symbol_skip call.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:33:26 +0000 (13:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:33:26 +0000 (13:33 +0000)
elf/dlsym.c

index 12a29e4b4c015a7a776c5a8ead3f98af40d995f6..bdcfa369c29be5455dd47bc3fb8d915113fb81ff 100644 (file)
@@ -1,5 +1,5 @@
 /* dlsym -- Look up a symbol in a shared object loaded by `dlopen'.
-   Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -53,8 +53,12 @@ RTLD_NEXT used in code not dynamically loaded"));
          while (l->l_loader)
            l = l->l_loader;
 
-         loadbase = _dl_lookup_symbol_skip
-           (name, &ref, &_dl_loaded, NULL, l, 0);
+         {
+           struct link_map *map = l;
+           struct link_map *mapscope[2] = { map, NULL };
+           loadbase = _dl_lookup_symbol_skip
+             (name, &ref, mapscope, NULL, match, 0);
+         }
        }
       else
        {