3 releases
0.1.2 | Jun 26, 2020 |
---|---|
0.1.1 | Jun 26, 2020 |
0.1.0 | Jun 26, 2020 |
#22 in #mach-o
30KB
597 lines
otool
A pure Rust-implementation of 'otool' for the Mach-O File Format.
$ cargo install otool
$ otool -a binary.o
Trivia
otool is based on rust-macho, more specifically on its otool example. This is a distribution (with minor changes).
Usage
otool 0.1.0
object file displaying tool
USAGE:
otool [FLAGS] [OPTIONS] [--] [files]...
FLAGS:
--help Prints help information
-a Print the archive headers
--bind Print the mach-o binding info
-d Print the data section
--export Print the mach-o exported symbols
-f Print the fat headers
-X Print no leading addresses or headers
--lazy Print the mach-o lazy binding info
-S Print the table of contents of a library
-l Print the load commands
-h Print the mach header
--rebase Print the mach-o rebasing info
-L Print shared libraries used
-D Print shared library id name
-n Print the symbol table
-t Print the text section
-v Print verbosely (symbolically) when possible
--version Print the version of program
--weak Print the mach-o weak binding info
OPTIONS:
--arch <cpu-type> Specifies the architecture
-s <segname[:sectname]>... Print contents of section
ARGS:
<files>... The object files
Notes
cargo
requires a rust installation.
Dependencies
~7–16MB
~199K SLoC