| To: | linux-mips@linux-mips.org, binutils@sources.redhat.com |
|---|---|
| Subject: | Branch bug in gas on MIPS |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Tue, 17 Aug 2004 18:01:10 +0200 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4.1i |
Below little test case demonstrates a gas bug that results in swapping
of the two branch instructions and use of bogus destination addresses
for the first of the two branches.
[ralf@lappi tmp]$ cat s.s
1: beqzl $2, 1b
beq $4, $5, 1b
[ralf@lappi tmp]$ mips-linux-as -mips2 -o s.o s.s
[ralf@lappi tmp]$ mips-linux-objdump -d s.o
s.o: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <.text>:
0: 1085ffff beq a0,a1,0x0
4: 00000000 nop
8: 50400000 beqzl v0,0xc
c: 00000000 nop
Have a nice day ;-)
Ralf
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: O2 arcboot 32-bit kernel boot fix, Martin Michlmayr |
|---|---|
| Next by Date: | Re: Yamon compiling and linking, Saugata . Chatterjee |
| Previous by Thread: | RE: Busybox v0.60.2 insmod gives segmentation fault without any m essages when trying to load a loadable module, Marcus Gustafsson |
| Next by Thread: | Re: Branch bug in gas on MIPS, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |