From: Apple Date: Wed, 29 Jul 2020 21:15:23 +0000 (+0000) Subject: dyld-750.6.tar.gz X-Git-Tag: macos-10156^0 X-Git-Url: https://git.saurik.com/apple/dyld.git/commitdiff_plain/d3f1e533acc7f70659b8bde9b6c040974f05e03b dyld-750.6.tar.gz --- 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) {