Add a symbol's value to the computed frag offset, rather than overwriting it.
This commit is contained in:
parent
cca728d0c9
commit
8c8281f46f
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
|
|
||||||
* config/tc-sh.c ("elf/sh.h"): Include.
|
* config/tc-sh.c ("elf/sh.h"): Include.
|
||||||
|
|
|
@ -1253,7 +1253,7 @@ find_opcode (opcode, myops)
|
||||||
value = S_GET_VALUE(myops[opnum].X_add_symbol) - value -
|
value = S_GET_VALUE(myops[opnum].X_add_symbol) - value -
|
||||||
(obstack_next_free(&frchain_now->frch_obstack) - frag_now->fr_literal);
|
(obstack_next_free(&frchain_now->frch_obstack) - frag_now->fr_literal);
|
||||||
else
|
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]))
|
if (AT_WORD_P (&myops[opnum]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue