https://github.com/ethanuppal/machdump
A tool for low-level debugging of Mach-O files
https://github.com/ethanuppal/machdump
apple debug mach-o object-file object-files
Last synced: 3 months ago
JSON representation
A tool for low-level debugging of Mach-O files
- Host: GitHub
- URL: https://github.com/ethanuppal/machdump
- Owner: ethanuppal
- Created: 2022-09-26T01:45:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T14:46:42.000Z (almost 3 years ago)
- Last Synced: 2025-08-10T11:42:05.357Z (10 months ago)
- Topics: apple, debug, mach-o, object-file, object-files
- Language: C
- Homepage:
- Size: 470 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# machdump

`machdump` is a tool to verbatim dump Mach-O object files for low-level debugging. Mach-O is the executable file format on Apple software.
> NOTE: `machdump` only compiles on MacOS where the Mach-O headers are defined. If you can acquire those headers from Apple Open Source, you may be able to compile on other platforms.
Simply give it one or more Mach-O files on the command and it will dump each. It also responds to the universal options `--help` and `--version`.
## Usage
First, clone the repository and build the executable.
```bash
git clone https://github.com/ethanuppal/machdump
cd machdump
make
```
Then, install machdump with:
```bash
sudo cp machdump /usr/local/bin
```
## Similar Projects
There is a similar project under an identical name, which I found after I had already named this: https://github.com/GeoSn0w/MachDump. As of writing this, another person has created a parser in Zig very recently: https://gpanders.com/blog/exploring-mach-o-part-1/.