diff --git a/elf/tst-dl_find_object.c b/elf/tst-dl_find_object.c index 21cdc0f848..855d0fc735 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 ();