]> git.saurik.com Git - apple/ld64.git/blobdiff - src/ld/InputFiles.cpp
ld64-128.2.tar.gz
[apple/ld64.git] / src / ld / InputFiles.cpp
index 84a2297bb72949c50ea45614d6df55711e14516b..7b05a963511d92771d018df9b8048802d9a2db50 100644 (file)
@@ -627,12 +627,8 @@ void InputFiles::inferArchitecture(Options& opts, const char** archName)
 
        // no thin .o files found, so default to same architecture this tool was built as
        warning("-arch not specified");
-#if __ppc__
-       opts.setArchitecture(CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_ALL);
-#elif __i386__
+#if __i386__
        opts.setArchitecture(CPU_TYPE_I386, CPU_SUBTYPE_X86_ALL);
-#elif __ppc64__
-       opts.setArchitecture(CPU_TYPE_POWERPC64, CPU_SUBTYPE_POWERPC_ALL);
 #elif __x86_64__
        opts.setArchitecture(CPU_TYPE_X86_64, CPU_SUBTYPE_X86_64_ALL);
 #elif __arm__
@@ -811,6 +807,7 @@ bool InputFiles::forEachInitialAtom(ld::File::AtomHandler& handler) const
                        case Options::kPreload:
                                // add implicit __mh_preload_header label
                                handler.doAtom(DSOHandleAtom::_s_atomPreload);
+                               handler.doAtom(DSOHandleAtom::_s_atomAll);
                                break;
                        case Options::kObjectFile:
                                handler.doAtom(DSOHandleAtom::_s_atomObjectFile);