From: Ulrich Drepper Date: Mon, 2 Mar 1998 13:33:26 +0000 (+0000) Subject: (dlsym:doit): Fix scope and skip maps for _dl_lookup_symbol_skip call. X-Git-Tag: cvs/before-sparc-2_0_x-branch~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5bf3c93216cd9dd9896335032100a7e8b1fe966;p=thirdparty%2Fglibc.git (dlsym:doit): Fix scope and skip maps for _dl_lookup_symbol_skip call. --- diff --git a/elf/dlsym.c b/elf/dlsym.c index 12a29e4b4c0..bdcfa369c29 100644 --- a/elf/dlsym.c +++ b/elf/dlsym.c @@ -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 {