From f7b5efd24873e76f37f319024f5cfc5404d68118 Mon Sep 17 00:00:00 2001 From: Emery Berger Date: Fri, 12 Aug 2022 18:32:33 -0400 Subject: [PATCH] Removed RTLD_NOLOAD, fixing https://github.com/plasma-umass/coz/issues/180. --- libcoz/real.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcoz/real.cpp b/libcoz/real.cpp index c93b71a..8e7c063 100644 --- a/libcoz/real.cpp +++ b/libcoz/real.cpp @@ -36,7 +36,7 @@ static void* pthread_handle = NULL; //< The `dlopen` handle to libpthread */ static void* get_pthread_handle() { if(pthread_handle == NULL && !__atomic_exchange_n(&in_dlopen, true, __ATOMIC_ACQ_REL)) { - pthread_handle = dlopen("libpthread.so.0", RTLD_NOW | RTLD_GLOBAL | RTLD_NOLOAD); + pthread_handle = dlopen("libpthread.so.0", RTLD_NOW | RTLD_GLOBAL); __atomic_store_n(&in_dlopen, false, __ATOMIC_RELEASE); }