Macholib - Analyze and edit Mach-O headers¶
macholib can be used to analyze and edit Mach-O headers, the executable format used by Mac OS X.
It’s typically used as a dependency analysis tool, and also to rewrite dylib
references in Mach-O headers to be @executable_path relative.
Though this tool targets a platform specific file format, it is pure python code that is platform and endian independent.
General documentation¶
Reference Guide¶
macholib.MachO— Utilities for reading and writing Mach-O headersmacholib.MachoGraph— Graph data structure of Mach-O dependenciesmacholib.MachOStandalone— Create standalone application bundlesmacholib.SymbolTable— Class to read the symbol table from a Mach-O headermacholib.dyld— Dyld emulationmacholib.dylib— Generic dylib path manipulationmacholib.framework— Generic framework path manipulationmacholib.mach_o— Low-level definitionsmacholib.ptypes— Packable types
Online Resources¶
Contributors¶
Macholib was written by Bob Ippolito and is currently maintained by Ronald Oussoren <ronaldoussoren@mac.com>.