Index: compat/mac/mach-o/getsect.cc |
diff --git a/compat/mac/mach-o/getsect.cc b/compat/mac/mach-o/getsect.cc |
index 2990c9259b1eca18d7a1dda2003afacc6ddb0bd9..71d3066c677aa79cbe05edf3a2a08a16d4bf0ddd 100644 |
--- a/compat/mac/mach-o/getsect.cc |
+++ b/compat/mac/mach-o/getsect.cc |
@@ -43,7 +43,7 @@ void* SystemLibMachOHandle() { |
if (!dladdr(reinterpret_cast<void*>(getsectbyname), &info)) { |
return nullptr; |
} |
- return dlopen(info.dli_fname, RTLD_LAZY | RTLD_LOCAL); |
+ return dlopen(info.dli_fname, RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); |
} |
// Returns a function pointer to a function in libmacho based on a lookup of |