bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/11597] New: bra.s to next instruction does not produce an error


From: vincent dot riviere at freesbee dot fr
Subject: [Bug gas/11597] New: bra.s to next instruction does not produce an error
Date: 13 May 2010 16:29:18 -0000

bra.s to next instruction is invalid because it would be the same opcode as 
bra.

$ cat bug.s
        bra.s   next
next:   nop

This is correctly rejected for ELF targets:

$ m68k-elf-as bug.s -o bug.o
bug.s: Assembler messages:
bug.s:1: Error: invalid byte branch offset

However it is accepted on m68k-aout targets and produce the wrong 0x6000 
opcode. It should be rejected like with ELF.

-- 
           Summary: bra.s to next instruction does not produce an error
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P3
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: vincent dot riviere at freesbee dot fr
                CC: bug-binutils at gnu dot org
GCC target triplet: m68k-netbsd


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

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