bug-binutils
[Top][All Lists]
Advanced

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

m32r-elf-as an infinite loop code bug


From: Kazuhiro Inaoka
Subject: m32r-elf-as an infinite loop code bug
Date: Mon, 19 Jan 2004 14:34:42 +0900

Hello,

The following case is an infinite loop at "bnc.s .L1".
I found it in a parallel code with debug information.

Kazuhiro Inaoka

<as version>
GNU assembler version 2.14.90 (m32r-elf) using BFD version 2.14.90 20031216

<Command line>
m32r-elf-as -o bnc.o -O -m32r2 bnc.s

<Bug case>
 .section .text
__brk:
 ldi r5,#0
.stabn 68,0,42,.LM7-__brk
        .debugsym .LM7
 bnc.s L1
.stabn 68,0,44,.LM8-__brk
        .debugsym .LM8
 bl func
L1:
 .end

<Bug case output>
bnc.o:     file format elf32-m32r

Disassembly of section .text:

00000000 <__brk>:
   0: 7d 00 e5 00  bnc 0 <__brk> || ldi r5,#0   <=== ** NG **
   4: fe 00 00 00  bl 4 <__brk+0x4>
   4: R_M32R_26_PCREL_RELA func





reply via email to

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