Module Name:    src
Committed By:   martin
Date:           Wed Jul  5 16:14:03 UTC 2023

Modified Files:
        src/lib/libc/dlfcn [netbsd-9]: dlfcn_elf.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1662):

        lib/libc/dlfcn/dlfcn_elf.c: revision 1.17

libc: Fix missing membar_consumer in dl_iterate_phdr.

Pairs with the existing membar_producer.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.16.2.1 src/lib/libc/dlfcn/dlfcn_elf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/dlfcn/dlfcn_elf.c
diff -u src/lib/libc/dlfcn/dlfcn_elf.c:1.16 src/lib/libc/dlfcn/dlfcn_elf.c:1.16.2.1
--- src/lib/libc/dlfcn/dlfcn_elf.c:1.16	Fri Jul 13 19:49:47 2018
+++ src/lib/libc/dlfcn/dlfcn_elf.c	Wed Jul  5 16:14:03 2023
@@ -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.16.2.1 2023/07/05 16:14:03 martin 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.16.2.1 2023/07/05 16:14:03 martin 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;

Reply via email to