Search code examples
assemblydisassemblyobjdump

Disassembly library used by objdump


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.


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: