Wed Feb 14 11:22:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
authorIan Lance Taylor <ian@airs.com>
Wed, 14 Feb 1996 16:23:19 +0000 (16:23 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 14 Feb 1996 16:23:19 +0000 (16:23 +0000)
* config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing
the byte relocation, point it to the low byte of the word.

gas/ChangeLog
gas/config/tc-m68k.c

index 4f485faa42073694aad68a09239e992f7fc2799a..7c0ae2760a1ee2fbca745fbb1c4e8451cf63e719 100644 (file)
@@ -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.
index 5235db4b2dfeac6c6704d8656567635bdcb001ff..dc82c138a5b9430642ae0b368ee509b8d2baf25c 100644 (file)
@@ -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))