~gpanders/macho

Simple Mach-O parser
Do not use an enum for CpuSubType
Vendor macOS headers

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~gpanders/macho
read/write
git@git.sr.ht:~gpanders/macho

You can also use your local clone with git send-email.

#macho

A simple (WIP) Mach-O object file parser.

#Building

Requires Zig trunk. Simply clone this repo and run

zig build

#Usage

Pass the path to a valid Mach-O file as the first (and only) argument. If you built macho on macOS then you can of course use the macho binary itself:

zig-out/bin/macho zig-out/bin/macho

If you're not on macOS then you can use Zig itself to cross compile a Mach-O file:

zig build-obj -target aarch64-macos-gnu src/macho.zig
zig-out/bin/macho macho.o

#License

MIT