public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited] elf tst-dl_find_object: Fix typo
@ 2022-01-15 12:59 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2022-01-15 12:59 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault, commit-hurd

mod1 was xdlclose()d a few lines above.
---
 elf/tst-dl_find_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 ();
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-15 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-15 12:59 [hurd,commited] elf tst-dl_find_object: Fix typo Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).