1. disassemble text sections
otool -tV <file>
GNU Linux: objdump -j .text -d <file>
2. Disassemble a section
otool -V -s __text <section> <file>
GNU/Linux: objdump -j <section> -d <file>
3. Print out the shared library dependencies
otool -L <file>
GNU/Linux: ldd <file>
4. Print out the data sections
otool -dv <file>
GNU/Linux objdump -j .data -s <file>
Advertisements