]> git.saurik.com Git - apple/ld64.git/blobdiff - src/MachOWriterExecutable.hpp
ld64-77.1.tar.gz
[apple/ld64.git] / src / MachOWriterExecutable.hpp
index 5b05210cf756704a7bfb0022e44c09e8c311c86f..56c6dd2d2e969e3e158e6ff9a54d8fcc8f61ad4c 100644 (file)
@@ -2383,7 +2383,10 @@ bool Writer<A>::makesExternalRelocatableReference(ObjectFile::Atom& target) cons
                case ObjectFile::Atom::kAbsoluteSymbol:
                        return false;
                case ObjectFile::Atom::kTentativeDefinition:
-                       return (target.getScope() != ObjectFile::Atom::scopeTranslationUnit);
+                       if ( fOptions.readerOptions().fMakeTentativeDefinitionsReal )
+                               return false;
+                       else
+                               return (target.getScope() != ObjectFile::Atom::scopeTranslationUnit);
                case ObjectFile::Atom::kExternalDefinition:
                case ObjectFile::Atom::kExternalWeakDefinition:
                        return shouldExport(target);