]> git.saurik.com Git - apple/ld64.git/blobdiff - src/SectCreate.cpp
ld64-59.2.tar.gz
[apple/ld64.git] / src / SectCreate.cpp
index 7296c1a96e16df0d9a0361d9a0cc5cbeaa715ac6..a77a78746b179be87e60808f9b3740b2a2d4bcf6 100644 (file)
@@ -70,6 +70,7 @@ public:
        virtual Scope                                                           getScope() const                        { return ObjectFile::Atom::scopeTranslationUnit; }
        virtual DefinitionKind                                          getDefinitionKind() const       { return kRegularDefinition; }
        virtual SymbolTableInclusion                            getSymbolTableInclusion() const { return ObjectFile::Atom::kSymbolTableNotIn; }
+       virtual bool                                                            dontDeadStrip() const           { return true; }
        virtual bool                                                            isZeroFill() const                      { return false; }
        virtual uint64_t                                                        getSize() const                         { return fFileLength; }
        virtual std::vector<ObjectFile::Reference*>&  getReferences() const             { return fgEmptyReferenceList; }
@@ -88,7 +89,7 @@ protected:
        friend class Reader;
        
                                                                                        Atom(Reader& owner, Segment& segment, const char* sectionName, const uint8_t fileContent[], uint64_t fileLength) 
-                                                                                               : fOwner(owner), fSegment(segment), fSectionName(sectionName), fFileContent(fileContent), fFileLength(fileLength) { setDontDeadStrip(); }
+                                                                                               : fOwner(owner), fSegment(segment), fSectionName(sectionName), fFileContent(fileContent), fFileLength(fileLength) { }
        virtual                                                                 ~Atom() {}
        
        Reader&                                                                 fOwner;