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]

Object dump problem for H8/300 target


Hi All,

I have found a bug in objdump utility for H8/300 target. 
My binutils version is 2.13.2.1, but same problem is also observed in binutils version 2.14 also.
Please find problem description as follows,

/********************************/
foo.s

; void foo()
; {
; }

foo:
        mov.w r6, @-r7
        mov.w r7, r6
        mov.w @r7+, r6
        rts
/********************************/

h8300-elf-as -o foo.o foo.s
h8300-elf-objdump -d foo.o > foo.dmp

Contents of foo.dmp are

/*********************************/
foo.o:     file format elf32-h8300

Disassembly of section .text:
00000000 <foo>:
   0:   6d f6           6d f6             mov.w r6,@-e7
   2:   0d 76           0d 76             mov.w r7,r6
   4:   6d 76           6d 76             mov.w @r7+,r6
   6:   54 70           54 70             rts
/********************************/

The problem is, dump file is showing "-e7" instead of "-r7".

Regards,
Anil


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