[PATCH]: Fix pb in gas 68hc11 with bsr/bra
Stephane Carrez
Stephane.Carrez@worldnet.fr
Sat Jul 28 12:28:00 GMT 2001
Hi!
I've committed the following patch to fix a nasty bug that causes
a wrong fixup to be created for bsr/bra instructions.
Stephane
2001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
and bra relax: update fragP->fr_fix after the fixup.
Index: config/tc-m68hc11.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68hc11.c,v
retrieving revision 1.18
diff -u -p -r1.18 tc-m68hc11.c
--- tc-m68hc11.c 2001/07/23 13:03:39 1.18
+++ tc-m68hc11.c 2001/07/28 19:26:18
@@ -2595,9 +2595,9 @@ md_estimate_size_before_relax (fragP, se
necessary for the unresolved symbol address. */
fragP->fr_opcode[0] = convert_branch (fragP->fr_opcode[0]);
- fragP->fr_fix++;
- fix_new (fragP, old_fr_fix - 1, 2, fragP->fr_symbol,
+ fix_new (fragP, fragP->fr_fix - 1, 2, fragP->fr_symbol,
fragP->fr_offset, 0, BFD_RELOC_16);
+ fragP->fr_fix++;
break;
case STATE_CONDITIONAL_BRANCH:
More information about the Binutils
mailing list