This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: objdump x86


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]