From d3f1e533acc7f70659b8bde9b6c040974f05e03b Mon Sep 17 00:00:00 2001 From: Apple Date: Wed, 29 Jul 2020 21:15:23 +0000 Subject: [PATCH] dyld-750.6.tar.gz --- src/dyld2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dyld2.cpp b/src/dyld2.cpp index 18aec93..68585b2 100644 --- a/src/dyld2.cpp +++ b/src/dyld2.cpp @@ -1474,7 +1474,7 @@ void removeImage(ImageLoader* image) } // If this image is the potential canonical definition of any weak defs, then set them to a tombstone value - if ( gLinkContext.weakDefMapInitialized && image->hasCoalescedExports() ) { + if ( gLinkContext.weakDefMapInitialized && image->hasCoalescedExports() && (image->getState() >= dyld_image_state_bound) ) { Diagnostics diag; const dyld3::MachOAnalyzer* ma = (const dyld3::MachOAnalyzer*)image->machHeader(); ma->forEachWeakDef(diag, ^(const char *symbolName, uintptr_t imageOffset, bool isFromExportTrie) { -- 2.45.2