Add a symbol's value to the computed frag offset, rather than overwriting it.
authorNick Clifton <nickc@redhat.com>
Fri, 18 Feb 2000 18:45:28 +0000 (18:45 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 18 Feb 2000 18:45:28 +0000 (18:45 +0000)
gas/ChangeLog
gas/config/tc-d10v.c

index 08c005eb966739b9db1d1131f6ead94643c978ff..8eeb49b29efc45c924250a99b638cda5291d11ab 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-18  Nick Clifton  <nickc@cygnus.com>
+
+       * config/tc-d10v.c (find_opcode): Add a symbol's value to
+       the computed frag offset, rather than overwriting it.
+
 Thu Feb 17 00:11:08 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * config/tc-sh.c ("elf/sh.h"): Include.
index 4549a9568f15ea702bbdf3ba41f2f3fc01171778..d20ae10475fe73cc779e18c8408c5894702ae307 100644 (file)
@@ -1253,7 +1253,7 @@ find_opcode (opcode, myops)
                    value = S_GET_VALUE(myops[opnum].X_add_symbol) - value -
                      (obstack_next_free(&frchain_now->frch_obstack) - frag_now->fr_literal);
                  else
-                   value = S_GET_VALUE(myops[opnum].X_add_symbol);
+                   value += S_GET_VALUE(myops[opnum].X_add_symbol);
 
                  if (AT_WORD_P (&myops[opnum]))
                    {