#binary-file #replace #convert #addresses #dwarf #atos

app atosl

🦀️atos for linux by rust - A partial replacement for Apple's atos tool for converting addresses within a binary file to symbols

13 releases

0.1.13 Apr 17, 2022
0.1.12 Apr 17, 2022
0.1.11 Feb 17, 2022
0.1.10 Jan 5, 2022
0.1.0 Dec 29, 2021

#20 in #binary-file

Download history 18/week @ 2025-05-21 3/week @ 2025-05-28 16/week @ 2025-06-04 28/week @ 2025-06-11 21/week @ 2025-06-18 18/week @ 2025-06-25 24/week @ 2025-07-02 32/week @ 2025-07-09 14/week @ 2025-07-16 54/week @ 2025-07-23 29/week @ 2025-07-30 54/week @ 2025-08-06 49/week @ 2025-08-13 45/week @ 2025-08-20 29/week @ 2025-08-27 56/week @ 2025-09-03

201 downloads per month

MIT license

18KB
402 lines

atosl-rs

🦀️atos for linux by rust - A partial replacement for Apple's atos tool for converting addresses within a binary file to symbols.

tested on dwarf and macho

install

  1. install rust via : https://www.rust-lang.org/tools/install
  2. cargo install atosl
# install guide for ubuntu
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

usage

🦀️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

sample

// 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 

optimize

feel free to make a pull request :)

Dependencies

~8.5MB
~171K SLoC