Disassembly library used by objdump
assembly, disassembly, objdump
Solution
`objdump` uses `libopcodes` from `binutils`. It is pretty basic, however, since it only provides text representation and no structured information about the instructions. Other options:
- http://mkfs.github.com/content/opdis/
- http://www.beaengine.org/
- http://bastard.sourceforge.net/libdisasm.html
- http://code.google.com/p/libdasm/ (has even more links)
Problem
I am searching for a library which performs disassembly of a binary code. I found that that libdisasm performs exactly same task as I want. However, I have found some links indicating that libdisasm does not work for 64-bit executables. Is it correct ? But objdump's output for 64-bit executables is reliable (to the best of my knowledge). So, does objdump too use a similar library for disassembly ?? Initially, I thought that objdump uses libdisasm.