Re: How to find the architecture for a mach-o file?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 25 Mar 2009, at 13:43, Karan, Cem (Civ, ARL/CISD) wrote: Using otool -aSfh, I get the following: Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags 0xfeedface 7 3 0x00 6 11 1208 0x00100085 The problem is that I have no idea what the cputype and subtype numbers mean. Anybody with any ideas? $ file /usr/lib/libexpat.1.dylib /usr/lib/libexpat.1.dylib: Mach-O universal binary with 4 architectures /usr/lib/libexpat.1.dylib (for architecture ppc7400): Mach-O dynamically linked shared library ppc /usr/lib/libexpat.1.dylib (for architecture ppc64): Mach-O 64-bit dynamically linked shared library ppc64 /usr/lib/libexpat.1.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /usr/lib/libexpat.1.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 In fact, any ideas on how to fix this problem? It depends on the cause, but if it does not contain all necessary architectures: probably reinstall (possibly by manually extracting it from some OS installer package, or copying it over from another machine). This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe