Jan 20, 2021 2:41 PM
Jan 12, 2021 1:07 PM
otool -h <path>
filetypeAn integer indicating the usage and alignment of the file. Valid values for this field include:
MH_OBJECTfile type is the format used for intermediate object files. It is a very compact format containing all its sections in one segment. The compiler and assembler usually create one
MH_OBJECTfile for each source code file. By convention, the file name extension for this format is
MH_EXECUTEfile type is the format used by standard executable programs.
MH_BUNDLEfile type is the type typically used by code that you load at runtime (typically called bundles or plug-ins). By convention, the file name extension for this format is
MH_DYLIBfile type is for dynamic shared libraries. It contains some additional tables to support multiple modules. By convention, the file name extension for this format is
.dylib, except for the main shared library of a framework, which does not usually have a file name extension.
MH_PRELOADfile type is an executable format used for special-purpose programs that are not loaded by the OS X kernel, such as programs burned into programmable ROM chips. Do not confuse this file type with the
MH_PREBOUNDflag, which is a flag that the static linker sets in the header structure to mark a prebound image.
MH_COREfile type is used to store core files, which are traditionally created when a program crashes. Core files store the entire address space of a process at the time it crashed. You can later run
gdbon the core file to figure out why the crash occurred.
MH_DYLINKERfile type is the type of a dynamic linker shared library. This is the type of the
MH_DSYMfile type designates files that store symbol information for a corresponding binary file.