From 8c8281f46f707b415184bd8bc1f23dcdf03fd37c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 18 Feb 2000 18:45:28 +0000 Subject: [PATCH] Add a symbol's value to the computed frag offset, rather than overwriting it. --- gas/ChangeLog | 5 +++++ gas/config/tc-d10v.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 08c005eb966..8eeb49b29ef 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-02-18 Nick Clifton + + * 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 * config/tc-sh.c ("elf/sh.h"): Include. diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c index 4549a9568f1..d20ae10475f 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])) { -- 2.30.2