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>)
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>


