Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to get the source code of a small command line tool using objdump on Mac OS X.

I've used arm-linux-objdump on Linux and find it a great tool.

Is there any way to install objdump on OS X? I've searched Google and found information about arm-apple-dawin9-objdump, but failed to find anything to download.

share|improve this question

3 Answers 3

objdump is part of binutils.

share|improve this answer
Homebrew has it too! :) –  Adrian Petrescu Dec 7 '11 at 2:26
I was hoping homebrew has it! Thanks! brew install binutils –  nacho4d Sep 9 '13 at 8:37
MacPorts binutils installs objdump as gobjdump. –  user267739 Oct 29 '13 at 6:54

If you have XCode Tools installed on your Mac, you can use the otool that comes with it. I believe it does pretty much what objdump is capable of.

share|improve this answer
+1 for otool - use otool -tV <executable> to disassemble –  Paul R Nov 3 '10 at 8:54
dwarftool also offers some similar functionality. –  Mike Weller Oct 19 '12 at 7:30
does otool have an option like objdump -S, which gives assembly output annotated with source code? Couldn't really figure out from the --help output. –  rgngl Mar 13 '13 at 13:17

If your file is 64bits, you should use otool instead of gobjdump in binutils. On Mac OSX, gobjdump is for 32bits.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.