From: Ian Lance Taylor Date: Wed, 14 Feb 1996 16:23:19 +0000 (+0000) Subject: Wed Feb 14 11:22:27 1996 Andreas Schwab X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9396c16ce8f59a461c6872f50af19db25531590;p=binutils-gdb.git Wed Feb 14 11:22:27 1996 Andreas Schwab * config/tc-m68k.c (m68k_ip) [operand kind '#']: When fixing the byte relocation, point it to the low byte of the word. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 4f485faa420..7c0ae2760a1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 14 11:22:27 1996 Andreas Schwab + + * 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 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared. diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 5235db4b2df..dc82c138a5b 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))