Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/dlfcn libc: Fix missing membar_consumer in dl_itera...
details: https://anonhg.NetBSD.org/src/rev/26a833bf34bf
branches: trunk
changeset: 377265:26a833bf34bf
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 04 19:24:25 2023 +0000
description:
libc: Fix missing membar_consumer in dl_iterate_phdr.
Pairs with the existing membar_producer.
XXX pullup-8
XXX pullup-9
XXX pullup-10
diffstat:
lib/libc/dlfcn/dlfcn_elf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9338439eb4da -r 26a833bf34bf lib/libc/dlfcn/dlfcn_elf.c
--- a/lib/libc/dlfcn/dlfcn_elf.c Tue Jul 04 18:40:14 2023 +0000
+++ b/lib/libc/dlfcn/dlfcn_elf.c Tue Jul 04 19:24:25 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dlfcn_elf.c,v 1.16 2018/07/13 19:49:47 joerg Exp $ */
+/* $NetBSD: dlfcn_elf.c,v 1.17 2023/07/04 19:24:25 riastradh Exp $ */
/*
* Copyright (c) 2000 Takuya SHIOZAKI
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: dlfcn_elf.c,v 1.16 2018/07/13 19:49:47 joerg Exp $");
+__RCSID("$NetBSD: dlfcn_elf.c,v 1.17 2023/07/04 19:24:25 riastradh Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -207,6 +207,7 @@ dl_iterate_phdr(int (*callback)(struct d
membar_producer();
setup_done = true;
}
+ membar_consumer();
memset(&phdr_info, 0, sizeof(phdr_info));
phdr_info.dlpi_addr = dlpi_addr;
Home |
Main Index |
Thread Index |
Old Index