]> git.saurik.com Git - apple/ld64.git/blobdiff - src/other/ObjectDump.cpp
ld64-409.12.tar.gz
[apple/ld64.git] / src / other / ObjectDump.cpp
index 6763e1a358938083c21e4cf2229e7677e736b015..5a355dc952f7ac33b3e77869ef1096baf416f09a 100644 (file)
@@ -35,6 +35,8 @@
 #include "parsers/macho_relocatable_file.h"
 #include "parsers/lto_file.h"
 
+const ld::VersionSet ld::File::_platforms;
+
 static bool                    sDumpContent= true;
 static bool                    sDumpStabs      = false;
 static bool                    sSort           = true;
@@ -1258,8 +1260,9 @@ static ld::relocatable::File* createReader(const char* path)
        if ( ! foundFatSlice ) {
                cpu_type_t archOfObj;
                cpu_subtype_t subArchOfObj;
-               Options::Platform platform;
-               if ( mach_o::relocatable::isObjectFile(p, &archOfObj, &subArchOfObj, &platform) ) {
+               ld::Platform platform;
+               uint32_t minOS;
+               if ( mach_o::relocatable::isObjectFile(p, &archOfObj, &subArchOfObj, &platform, &minOS) ) {
                        objOpts.architecture = archOfObj;
                        objOpts.subType = subArchOfObj;
                }