1 个不稳定版本
0.0.2 | 2023年6月16日 |
---|---|
0.0.1 |
|
#52 in #dwarf
每月 48 下载
18KB
397 lines
atosl-astrolabe
🦀️atos for linux by rust - Apple 的 atos 工具的部分替代品,用于将二进制文件内的地址转换为符号。基于 atosl-rs 0.1.13。
在 dwarf 和 macho 上进行了测试
安装
- 通过 https://www.rust-lang.net.cn/tools/install 安装 rust
- cargo install atos-astrolabe
# macOS install guide
cargo install atosl
# Ubuntu install guide
sudo apt update
sudo apt install git
sudo apt install curl
sudo apt install build-essential
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install atosl
用法
🦀️atos for linux by rust - A partial replacement for Apple's atos tool for converting addresses
within a binary file to symbols.
USAGE:
atosl [OPTIONS] -o <OBJECT_PATH> -l <LOAD_ADDRESS> [ADDRESSES]...
ARGS:
<ADDRESSES>... Addresses need to translate
OPTIONS:
-l <LOAD_ADDRESS> Load address of binary image
-o <OBJECT_PATH> Symbol file path or binary file path
-f Addresses are file offsets (ignore vmaddr in __TEXT or other executable
segment)
-v Enable verbose mode with extra output
-h, --help Print help information
-V, --version Print version information
示例
// for dwarf
atosl -l 4581015552 -o "full path to dwarf file" 4674962060 4786995348
// for macho
atosl -l 9093120 -o "full path to libsystem_malloc.dylib" 6754325196
优化
欢迎提出 pull request :)
依赖项
~8MB
~163K SLoC