aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-misc.c')
-rw-r--r--elf/dl-misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index 082f75f..d4803bb 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -347,7 +347,9 @@ _dl_name_match_p (const char *name, const struct link_map *map)
if (strcmp (name, runp->name) == 0)
return 1;
else
- runp = runp->next;
+ /* Synchronize with the release MO store in add_name_to_object.
+ See CONCURRENCY NOTES in add_name_to_object in dl-load.c. */
+ runp = atomic_load_acquire (&runp->next);
return 0;
}