aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-14 16:23:19 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-14 16:23:19 +0000
commitd9396c16ce8f59a461c6872f50af19db25531590 (patch)
tree691e893a457ad933f12de4b66495bb8af1282a83 /gas
parentdb3bfcd64cab692328aa2adfe7a1585e4e83512e (diff)
downloadgdb-d9396c16ce8f59a461c6872f50af19db25531590.zip
gdb-d9396c16ce8f59a461c6872f50af19db25531590.tar.gz
gdb-d9396c16ce8f59a461c6872f50af19db25531590.tar.bz2
Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing the byte relocation, point it to the low byte of the word.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-m68k.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4f485fa..7c0ae27 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
+ the byte relocation, point it to the low byte of the word.
+
Tue Feb 13 15:31:18 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 5235db4..dc82c13 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -2130,7 +2130,8 @@ m68k_ip (instring)
opP->error = "out of range";
insop (tmpreg, opcode);
if (isvar (&opP->disp))
- the_ins.reloc[the_ins.nrel - 1].n = (opcode->m_codenum) * 2;
+ the_ins.reloc[the_ins.nrel - 1].n =
+ (opcode->m_codenum) * 2 + 1;
break;
case 'w':
if (!isword (tmpreg))