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]

Fwd: M68K disassembly oddness


I'm using objdump on some m68k binaries, and I'm seeing some misformatting:

$ m68k-linux-gnu-objdump -D -b binary -m 68040 tmp1.bin

tmp1.bin:     file format binary


Disassembly of section .data:

00000000 <.data>:
   0:   4ab0 3c00       tstl %a0@(0000000000000000,%d3:l:4)

$ m68k-linux-gnu-objdump -D -b binary -m 68040 tmp2.bin

tmp2.bin:     file format binary


Disassembly of section .data:

00000000 <.data>:
   0:   4ab0 3c0a       tstl %a0@(000000000000000a,%d3:l:4)


In the first example, I think it should just remove the
"0000000000000000,", as it reassembles fine without it.  In the second
example, it should at least preface it with "0x", but preferably
display it as "0xa" or "0x0a".

I've tried looking at the code but it's not entirely clear where this
processing happens.  Can someone point me in the right direction?

Thanks,

Jason


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