aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-15 13:58:56 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-15 13:58:56 +0100
commit4974c7cd8f5683d77e54cb04ab7b925224da702a (patch)
tree035cd46c780111123cd0f0d907c4eea1e59cdf39 /elf
parentf01d482f0355a7029d0715ace0ccf3323e7e94bc (diff)
downloadglibc-4974c7cd8f5683d77e54cb04ab7b925224da702a.zip
glibc-4974c7cd8f5683d77e54cb04ab7b925224da702a.tar.gz
glibc-4974c7cd8f5683d77e54cb04ab7b925224da702a.tar.bz2
elf tst-dl_find_object: Fix typo
mod1 was xdlclose()d a few lines above.
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-dl_find_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/tst-dl_find_object.c b/elf/tst-dl_find_object.c
index 21cdc0f..855d0fc 100644
--- a/elf/tst-dl_find_object.c
+++ b/elf/tst-dl_find_object.c
@@ -201,7 +201,7 @@ do_test (void)
/* Now try a NODELETE load. */
struct link_map *mod2 = xdlopen ("tst-dl_find_object-mod2.so", RTLD_NOW);
- void *mod2_data = xdlsym (mod1, "mod2_data");
+ void *mod2_data = xdlsym (mod2, "mod2_data");
map_start = (void *) mod2->l_map_start;
map_end = (void *) (mod2->l_map_end - 1);
check_initial ();