# 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

- Release history
- License
- Command-line tools

## Reference Guide

- `macholib.MachO` — Utilities for reading and writing Mach-O headers
- `macholib.MachoGraph` — Graph data structure of Mach-O dependencies
- `macholib.MachOStandalone` — Create standalone application bundles
- `macholib.SymbolTable` — Class to read the symbol table from a Mach-O header
- `macholib.dyld` — Dyld emulation
- `macholib.dylib` — Generic dylib path manipulation
- `macholib.framework` — Generic framework path manipulation
- `macholib.mach_o` — Low-level definitions
- `macholib.ptypes` — Packable types

## Online Resources

- Sourcecode repository on bitbucket

- The issue tracker

- Mac OS X ABI Mach-O File Format Reference at Apple

## Contributors

Macholib was written by Bob Ippolito and is currently maintained by Ronald Oussoren <ronaldoussoren@mac.com>.

## Indices and tables

- Index

- Module Index

- Search Page