aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-07-28 19:28:04 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-07-28 19:28:04 +0000
commit13283e2df1a415094e74f3061d556af0b561514a (patch)
treed10602e0cf7c1038f2fa708e72c789c727875fcc /gas
parenteefde3513e08af0ff95bcdddeefbaa24fb52b55e (diff)
downloadfsf-binutils-gdb-13283e2df1a415094e74f3061d556af0b561514a.zip
fsf-binutils-gdb-13283e2df1a415094e74f3061d556af0b561514a.tar.gz
fsf-binutils-gdb-13283e2df1a415094e74f3061d556af0b561514a.tar.bz2
* config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
and bra relax: update fragP->fr_fix after the fixup.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-m68hc11.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f2f8481..94bb8e0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
* read.c (s_set): Check for missing symbol name.
diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c
index c73f575..2c2b80c 100644
--- a/gas/config/tc-m68hc11.c
+++ b/gas/config/tc-m68hc11.c
@@ -2595,9 +2595,9 @@ md_estimate_size_before_relax (fragP, segment)
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: