[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/6956] New: When in MRI mode, local labels don't work correctly
From: |
miro dot kropacek at gmail dot com |
Subject: |
[Bug gas/6956] New: When in MRI mode, local labels don't work correctly |
Date: |
9 Oct 2008 21:42:27 -0000 |
Take this example code (m68k, MRI mode)
xxxglob:
dc.w -1
1: nop
bra.b 1f
ffxxx:
dc.w -2
1: nop
bra.b 1b
it assembles into this:
ff ff (-1)
4e 71 (nop)
60 02 (bra.b +2 bytes)
ff fe (-2)
4e 71 (nop)
60 f5 (bra -11 bytes, wtf?! it should be bra -2 bytes here!)
ab cd (0xabcd)
I tested it even on old gas 2.13 and this bug is here... strange nobody noticed
it. It happens only when in MRI mode.
--
Summary: When in MRI mode, local labels don't work correctly
Product: binutils
Version: 2.18
Status: NEW
Severity: critical
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: miro dot kropacek at gmail dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=6956
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/6956] New: When in MRI mode, local labels don't work correctly,
miro dot kropacek at gmail dot com <=