bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug in binutils: objdump


From: Tauno Voipio
Subject: Re: Possible bug in binutils: objdump
Date: Fri, 15 Mar 2002 18:04:57 GMT

"Sean Watkinson" <address@hidden> wrote in message
news:address@hidden
> I am currently running version 2.10.90 of objdump from the binutils
> distribution to disassemble an old MS-DOS executable of mine. I'd
> stripped away the MZEXE header and performed the following:
>
>      objdump -D -m i8086 -b binary stripped.exe
>
> one line in the resulting code reads:
>
>      1878c: e8 87 f5              call   0x7d16
>
> which should read:
>
>       1878c: e8 87 f5              call    0x17d16
>
> [Notice the missing "1" prefix to the address]
>

Please note that the MS-DOS code is 16-bit code: there are no addresses
longer than 16 bits, it cannot hold your '1' prefix. The larger address
space (up to a megabyte) is generated by segmentation, which the
dis-assembler has no knowledge about.

Tauno Voipio
tauno voipio @ iki fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]