]> git.saurik.com Git - apple/ld64.git/blobdiff - src/ld/passes/tlvp.cpp
ld64-127.2.tar.gz
[apple/ld64.git] / src / ld / passes / tlvp.cpp
index f40d01806518e12633b640d14095f58b1894a9db..a102e97d086f984b55c492099e2b5b68e552aa3d 100644 (file)
@@ -172,14 +172,6 @@ void doPass(const Options& opts, ld::Internal& internal)
                        if ( pos == weakImportMap.end() ) {
                                // target not in weakImportMap, so add
                                weakImportMap[it->targetOfTLV] = it->fixupWithTarget->weakImport;
-                               // <rdar://problem/5529626> If only weak_import symbols are used, linker should use LD_LOAD_WEAK_DYLIB
-                               const ld::dylib::File* dylib = dynamic_cast<const ld::dylib::File*>(it->targetOfTLV->file());
-                               if ( dylib != NULL ) {
-                                       if ( it->fixupWithTarget->weakImport )
-                                               (const_cast<ld::dylib::File*>(dylib))->setUsingWeakImportedSymbols();
-                                       else
-                                               (const_cast<ld::dylib::File*>(dylib))->setUsingNonWeakImportedSymbols();
-                               }
                        }
                        else {
                                // target in weakImportMap, check for weakness mismatch