bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12534] New: arm: disassembly of pc-relative ldrd instructi


From: dave.martin at linaro dot org
Subject: [Bug binutils/12534] New: arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb
Date: Wed, 2 Mar 2011 11:38:32 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12534

           Summary: arm: disassembly of pc-relative ldrd instructions not
                    fully annotated in Thumb
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden


The annotation of ldrd instructions in Thumb during
disassembly appears incomplete: the target label is not
annotated, whereas for ldr, or for ldr or ldrd in ARM, the
instruction is annotated with the target label in the
disassembly.

I believe the generated instruction encoding is right in the case
shown below, but it might be a good idea to double-check.

Cheers
---Dave

binutils$ cat <<EOF >ldr-tst.s
.syntax unified

.globl d
d:      .quad   0

.type f, %function
f:      ldrd    r0, r1, d
       nop
       ldrd    r0, r1, d
       ldr     r0, d
       nop
       ldr     r0, d
EOF

binutils$ binutils/objdump -mthumb -o ldr-tst.o ldr-tst.s &&
arm-linux-gnueabi-objdump -dr ldr-tst.o

[...]

Disassembly of section .text:

00000000 <d>:
       ...

00000008 <f>:
  8:   e95f 0103       ldrd    r0, r1, [pc, #-12]
*** bug?: no label annotated
  c:   46c0            nop                     ; (mov r8, r8)
  e:   e95f 0104       ldrd    r0, r1, [pc, #-16]
*** bug?: no label annotated
 12:   f85f 0014       ldr.w   r0, [pc, #-20]  ; 0 <d>
 16:   46c0            nop                     ; (mov r8, r8)
 18:   f85f 001c       ldr.w   r0, [pc, #-28]  ; 0 <d>

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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