All Projects → kubkon → zacho

kubkon / zacho

Licence: MIT license
Zig's Mach-O parser

Programming Languages

Zig
133 projects

Projects that are alternatives of or similar to zacho

zgt
Zig GUI Toolkit: Portable library for making native GUIs in Zig
Stars: ✭ 218 (+707.41%)
Mutual labels:  zig-package
zbox
termbox like terminal UI library for zig
Stars: ✭ 30 (+11.11%)
Mutual labels:  zig-package
zigdig
naive dns client library in zig
Stars: ✭ 26 (-3.7%)
Mutual labels:  zig-package
mach-glfw
Ziggified GLFW bindings with 100% API coverage, zero-fuss installation, cross compilation, and more.
Stars: ✭ 186 (+588.89%)
Mutual labels:  zig-package
sdk
TinyVG software development kit
Stars: ✭ 135 (+400%)
Mutual labels:  zig-package
zlm
Zig linear mathemathics
Stars: ✭ 67 (+148.15%)
Mutual labels:  zig-package
zig-args
Simple-to-use argument parser with struct-based config
Stars: ✭ 106 (+292.59%)
Mutual labels:  zig-package
mecha
A parser combinator library for Zig
Stars: ✭ 220 (+714.81%)
Mutual labels:  zig-package
ansi-term
Zig library for dealing with ANSI terminals
Stars: ✭ 25 (-7.41%)
Mutual labels:  zig-package
zetaframe
lightweight zig game framework.
Stars: ✭ 14 (-48.15%)
Mutual labels:  zig-package
IUPforZig
IUP (Portable User Interface Toolkit) bindings for the Zig language.
Stars: ✭ 56 (+107.41%)
Mutual labels:  zig-package
art.zig
An Adaptive Radix Tree ported from c
Stars: ✭ 35 (+29.63%)
Mutual labels:  zig-package
SDL.zig
A shallow wrapper around SDL that provides object API and error handling
Stars: ✭ 102 (+277.78%)
Mutual labels:  zig-package
zig-opengl
OpenGL binding generator based on the opengl registry
Stars: ✭ 29 (+7.41%)
Mutual labels:  zig-package
qml zig
QML bindings for the Zig programming language
Stars: ✭ 25 (-7.41%)
Mutual labels:  zig-package
zero-graphics
Application framework based on OpenGL ES 2.0. Runs on desktop machines, Android phones and the web
Stars: ✭ 72 (+166.67%)
Mutual labels:  zig-package
zig-eddsa-key-blinding
A Zig implementation of EdDSA signatures with blind keys.
Stars: ✭ 15 (-44.44%)
Mutual labels:  zig-package

zacho

...or Zig's Mach-O parser. This project started off as a dummy scratchpad for reinforcing my understanding of the Mach-O file format while I was working on the Zig's stage2 Mach-O linker (I still am working on it, in case anyone was asking).

My current vision for zacho is for it to be a cross-platform version of otool and pagestuff macOS utilities. These seem to be very useful when battling the Darwin kernel and dyld when those refuse to load your hand-crafter binary, or you just like looking at Mach-O dissected output.

Usage

zacho --help
zacho [-hl] [--help] <FILE>
	    --help         	   Display this help and exit.
	-h, --header       	   Print the Mach-O header.
	-l, --load-commands	   Print load commands.
        -c, --code-signature   Print the contents of code signature (if any).

Currently, zacho will let you print parsed Mach-O header, and print formatted load commands. I should point here out that I'm basing the flags on otool so if you're familiar with those, zacho should feel like second home to you.

Building from source

Building from source requires Zig nightly.

$ git clone https://github.com/kubkon/zacho.git --recursive
$ zig build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].