Disaseemble on Mac OS X

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s