There are two possible ways to do objdump in Mac OS X: 1) install GNU binutils; 2) use otool.

1) Install GNU binutils from the source (download), or from the MacPort.

2) Use otool, the Mac OS X native utility. I summarize the usage of otool in the following:

disassemble text sections (= objdump -j .text -d <file>)
otool -tV <file>
disassemble a section (= objdump -j <section> -d <file>)
otool -V -s __text <section> <file>
print out the shared library dependencies (= ldd <file>)
otool -L <file>
print out the data sections (= objdump -j .data -s <file>)
otool -dv <file>

2010/04/22 04:28 2010/04/22 04:28
Posted by 차상길.

Trackback URL : http://divine-protection.com/tc/trackback/31


« Previous : 1 : ... 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10 : 11 : ... 30 : Next »