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-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils