atosl(for linux) for java
- libelf
sudo apt-get install libelf-dev
- Iberty
- Ubuntu 14.04
sudo apt-get install libiberty-dev
- Ubuntu 12.04
sudo apt-get install binutils-dev
- Ubuntu 14.04
- libdwarf
- Download from Official Website
- Unzip source, then
./configure --enable-sharedmake
- copy
libdwarf.sofile to/usr/lib - copy
libdwarf.handdwarf.hto atosl-java folder
make
symbolicate(String arch, String executable, String[] addresses, int addressLength);
- addresses
- addresses[0] : base address
- addresses[1+] : runtime addresses
- findArch
- return String array
- array[0] : status code
- array[1] : architecture count
- array[2+] : architecture name
- return String array
- symbolicate
- return String array
- array[0] : status code
- array[1+] : symbolication result
- return String array
| code | status |
|---|---|
| 0 | success |
| -1 | unsupported architecture |
| -2 | unable to open dSYM file |
| -3 | unable to read dSYM file |
| -4 | unable to read architecture |
| -5 | unable to seek |
| -6 | architecture not found |
| -7 | invalid magic for architecture |
| -8 | invalid memory address |
| -9 | unable to read fat arch |
- Example file is in
/testfolder- Data from facebook/atosl | Issue #4