[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/3109] New: GAS assembles incorrect branches using target arm-wi
From: |
boris dot leidner at formenos dot de |
Subject: |
[Bug gas/3109] New: GAS assembles incorrect branches using target arm-wince-pe |
Date: |
23 Aug 2006 09:56:44 -0000 |
I assembled the following code:
.text
.global _start
_start:
mov r1, r1
b _start
.end
$ arm-wince-pe-as armtest.s -o armtest.o
$ arm-wince-pe-objdump -d armtest.o
armtest.o: file format pe-arm-little
Disassembly of section .text:
00000000 <_start>:
0: e1a01001 mov r1, r1
4: ea000000 b 8 <_start+0x8>
GAS produces incorrect code for branches, at least sometimes. GDB for
arm-wince-pe says:
(gdb) disas _start
Dump of assembler code for function _start:
0x00000000 <_start+0>: mov r1, r1
0x00000004 <_start+4>: b 0xc
I do not know why GAS and GDB disassemble code differently, but the real problem
is, that the branches are not working when I execute the code.
--
Summary: GAS assembles incorrect branches using target arm-wince-
pe
Product: binutils
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: boris dot leidner at formenos dot de
CC: bug-binutils at gnu dot org
GCC host triplet: i686-linux
GCC target triplet: arm-wince-pe
http://sourceware.org/bugzilla/show_bug.cgi?id=3109
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/3109] New: GAS assembles incorrect branches using target arm-wince-pe,
boris dot leidner at formenos dot de <=
- [Bug gas/3109] GAS assembles incorrect branches using target arm-wince-pe, boris dot leidner at formenos dot de, 2006/08/23
- Re: [Bug gas/3109] New: GAS assembles incorrect branches using target arm-wince-pe, Nick Clifton, 2006/08/23
- [Bug gas/3109] GAS assembles incorrect branches using target arm-wince-pe, nickc at redhat dot com, 2006/08/23
- [Bug gas/3109] GAS assembles incorrect branches using target arm-wince-pe, nickc at redhat dot com, 2006/08/23
- [Bug gas/3109] GAS assembles incorrect branches using target arm-wince-pe, boris dot leidner at formenos dot de, 2006/08/23
- [Bug gas/3109] GAS assembles incorrect branches using target arm-wince-pe, nickc at redhat dot com, 2006/08/23