This is the mail archive of the binutils@sources.redhat.com 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]

Possible bug in objdump?


Hi,

While disassembling dhry11.c which is part of the
Dhrystone benchmarks version 1.1, objdump seems to
disassemble incorrectly. In particular, objdump deals
with the instructions "rep" and "movs" incorrectly. 

So, I run:
gcc -S dhry11.c -o dhry11.s
gcc -c dhry11.c -o dhry11.o
objdump -d --no-show-raw-insn -r -s dhry11.o >
dhry11.dis

Now, dhry11.s contains the lines:
rep
movsl

The corresponding instructions in the disassembly (in
dhry11.dis) is  emitted on one line as:
4c8:   repz movsl %ds:(%esi),%es:(%edi)

The other instructions are disassembled correctly. So,
my question is: Is this a known bug in objdump and are
there fixes for the bug?

I can include the source file, dhry11.c, if needed.

Thanks

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com


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