]> git.saurik.com Git - apple/ld64.git/blobdiff - src/ld/parsers/macho_relocatable_file.h
ld64-302.3.tar.gz
[apple/ld64.git] / src / ld / parsers / macho_relocatable_file.h
index 92e904269b5033dfbbc1897a3497de9bf8a1e77d..e31f7f902b9e37e331713ae486ad3956bdd8d033 100644 (file)
@@ -41,7 +41,15 @@ struct ParserOptions {
        bool                    neverConvertDwarf;
        bool                    verboseOptimizationHints;
        bool                    armUsesZeroCostExceptions;
+       bool                    simulator;
+       bool                    ignoreMismatchPlatform;
        uint32_t                subType;
+       Options::Platform platform;
+       uint32_t                minOSVersion;
+       ld::relocatable::File::SourceKind       srcKind;
+       bool                    treateBitcodeAsData;
+       bool                    usingBitcode;
+       uint8_t                 maxDefaultCommonAlignment;
 };
 
 extern ld::relocatable::File* parse(const uint8_t* fileContent, uint64_t fileLength, 
@@ -50,13 +58,15 @@ extern ld::relocatable::File* parse(const uint8_t* fileContent, uint64_t fileLen
                                                                        
 extern bool isObjectFile(const uint8_t* fileContent, uint64_t fileLength, const ParserOptions& opts);
 
-extern bool isObjectFile(const uint8_t* fileContent, cpu_type_t* result, cpu_subtype_t* subResult);                                    
+extern bool isObjectFile(const uint8_t* fileContent, cpu_type_t* result, cpu_subtype_t* subResult, Options::Platform* platform);
 
 extern bool hasObjC2Categories(const uint8_t* fileContent);                                    
 
 extern bool hasObjC1Categories(const uint8_t* fileContent);
 
-extern const char* archName(const uint8_t* fileContent);                                       
+extern const char* archName(const uint8_t* fileContent);
+
+bool getNonLocalSymbols(const uint8_t* fileContent, std::vector<const char*> &syms);
 
 } // namespace relocatable
 } // namespace mach_o