| Crates.io | segment_dumper |
| lib.rs | segment_dumper |
| version | 0.1.5 |
| created_at | 2025-10-19 18:11:09.293626+00 |
| updated_at | 2025-10-19 18:41:44.914574+00 |
| description | A tool to list the sections and segments from a mach-o binary |
| homepage | https://github.com/CamJN/segment_dumper |
| repository | https://github.com/CamJN/segment_dumper |
| max_upload_size | |
| id | 1890733 |
| size | 14,645 |
cargo install segment_dumper
or
brew tap CamJN/fixed
brew install segment-dumper
Just pass segment_dumper a path to a mach-o binary:
segment_dumper /bin/bash
it will print the section,segment pairs from the binary as so:
__TEXT,__text
__TEXT,__stubs
__TEXT,__const
__TEXT,__cstring
__TEXT,__unwind_info
__TEXT,__eh_frame
__DATA_CONST,__got
__DATA_CONST,__const
__DATA,__data
__DATA,__common
__DATA,__bss
__TEXT,__text
__TEXT,__auth_stubs
__TEXT,__const
__TEXT,__cstring
__TEXT,__unwind_info
__DATA_CONST,__auth_got
__DATA_CONST,__got
__DATA_CONST,__auth_ptr
__DATA_CONST,__const
__DATA,__data
__DATA,__common
__DATA,__bss
These are conveniently formatted for passing to launchctl plist.
This binary is really just a thin wrapper around the goblin crate to expose particular functionality, while contributions are welcome, that effort would be more useful contributing to goblin instead.