objdump x86

H.J. Lu hjl.tools@gmail.com
Wed Dec 11 11:40:00 GMT 2013


On Wed, Dec 11, 2013 at 12:29 AM, Xin Tong <trent.tong@gmail.com> wrote:
> I am wondering how objdump can statically dump x86 executable. X86
> features a variable length instruction set and i was told there is no
> reliable way to disassemble x86 executable statically ( as data and
> instruction can be intermixed). How does objdump do it ?

objdump dissambles x86 binary byte by byte, following the x86 encoding
rules.  If you mix data and text, disassembler will get confused and
generate garbage.

-- 
H.J.



More information about the Binutils mailing list