summaryrefslogtreecommitdiffstats
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-02-18 18:45:28 +0000
committerNick Clifton <nickc@redhat.com>2000-02-18 18:45:28 +0000
commit8c8281f46f707b415184bd8bc1f23dcdf03fd37c (patch)
treec605048e6d9d40bea2aa908933d99d7d6b14dd52 /gas
parentcca728d0c98b0474d4f0b914c3fc1ce66b150f9d (diff)
downloadppe42-binutils-8c8281f46f707b415184bd8bc1f23dcdf03fd37c.tar.gz
ppe42-binutils-8c8281f46f707b415184bd8bc1f23dcdf03fd37c.zip
Add a symbol's value to the computed frag offset, rather than overwriting it.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-d10v.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 08c005eb96..8eeb49b29e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index 4549a9568f..d20ae10475 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -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]))
{
OpenPOWER on IntegriCloud