[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions n
From: |
dave.martin at linaro dot org |
Subject: |
[Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb |
Date: |
Tue, 12 Apr 2011 10:35:26 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12534
--- Comment #2 from Dave Martin <dave.martin at linaro dot org> 2011-04-12
10:35:21 UTC ---
(In reply to comment #1)
> Hi Dave,
>
> I believe that this problem is fixed now. Please could you check locally
> and
> confirm ?
>
> Cheers
> Nick
This doesn't seem to work for me. As before, the disassembly works as expected
in ARM, but not in Thumb:
binutils$ cat CVS/Root
:pserver:address@hidden/cvs/src
binutils$ TZ= cvs -z6 update -D'2011-04-12 09:30'
[...]
binutils$ ./configure --build=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--target=arm-elf-eabi && make
[...]
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$ gas/as-new -mthumb -o ldr-tst.o ldr-tst.s
ldr-tst.s: Assembler messages:
ldr-tst.s:7: Error: cannot represent T32_OFFSET_IMM relocation in this object
file format
ldr-tst.s:9: Error: cannot represent T32_OFFSET_IMM relocation in this object
file format
ldr-tst.s:10: Error: cannot represent T32_OFFSET_IMM relocation in this object
file format
ldr-tst.s:12: Error: cannot represent T32_OFFSET_IMM relocation in this object
file format
binutils$ grep -v '\.globl' ldr-tst.s | gas/as-new -mthumb -o ldr-tst.o -
binutils$ binutils/objdump -d ldr-tst.o
ldr-tst.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <d>:
...
00000008 <f>:
8: e95f 0103 ldrd r0, r1, [pc, #-12]
c: 46c0 nop ; (mov r8, r8)
e: e95f 0104 ldrd r0, r1, [pc, #-16]
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>
binutils$ gas/as-new -mthumb -o ldr-tst.o ldr-tst.s
ldr-tst.s: Assembler messages:
ldr-tst.s:7: Error: cannot represent OFFSET_IMM8 relocation in this object file
format
ldr-tst.s:9: Error: cannot represent OFFSET_IMM8 relocation in this object file
format
binutils$ grep -v '\.globl' ldr-tst.s | gas/as-new -mthumb -o ldr-tst.o -
binutils$ binutils/objdump -d ldr-tst.o
ldr-tst.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <d>:
...
00000008 <f>:
8: e14f01d0 ldrd r0, [pc, #-16] ; 0 <d>
c: e1a00000 nop ; (mov r0, r0)
10: e14f01d8 ldrd r0, [pc, #-24] ; 0 <d>
14: e51f001c ldr r0, [pc, #-28] ; 0 <d>
18: e1a00000 nop ; (mov r0, r0)
1c: e51f0024 ldr r0, [pc, #-36] ; 0 <d>
binutils$ exit
--
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.
- [Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb,
dave.martin at linaro dot org <=
- [Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb, nickc at redhat dot com, 2011/04/12
- [Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb, nickc at redhat dot com, 2011/04/12
- [Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb, dave.martin at linaro dot org, 2011/04/12
- [Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb, cvs-commit at gcc dot gnu.org, 2011/04/12
- [Bug binutils/12534] arm: disassembly of pc-relative ldrd instructions not fully annotated in Thumb, nickc at redhat dot com, 2011/04/12