diff --git a/elf/dl-tls.c b/elf/dl-tls.c index c192b5a13a..70446e71a8 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -154,6 +154,7 @@ _dl_assign_tls_modid (struct link_map *l) { /* Mark the entry as used, so any dependency see it. */ atomic_store_relaxed (&runp->slotinfo[result - disp].map, l); + atomic_store_relaxed (&runp->slotinfo[result - disp].gen, 0); break; }