hippalus / atosl-java

atosl for java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

atosl-java

atosl(for linux) for java

Usage

Requirements

  • 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
  • libdwarf
    • Download from Official Website
    • Unzip source, then
      • ./configure --enable-shared
      • make
    • copy libdwarf.so file to /usr/lib
    • copy libdwarf.h and dwarf.h to atosl-java folder

Build

make

Java

symbolicate(String arch, String executable, String[] addresses, int addressLength);
  • addresses
    • addresses[0] : base address
    • addresses[1+] : runtime addresses

Return value


  • findArch
    • return String array
      • array[0] : status code
      • array[1] : architecture count
      • array[2+] : architecture name
  • symbolicate
    • return String array
      • array[0] : status code
      • array[1+] : symbolication result
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

Reference

About

atosl for java


Languages

Language:C 52.9%Language:C++ 41.8%Language:Java 4.8%Language:Makefile 0.4%Language:JavaScript 0.2%