diff --git a/elf/dl-tls.c b/elf/dl-tls.c index 0070c8bbaa..42868eef68 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -160,6 +160,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; }