diff options
author | Doug Evans <dje@google.com> | 1998-01-31 00:04:27 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-01-31 00:04:27 +0000 |
commit | b6675c1a8e75809c4a58ea2e19b625a36dc6abcf (patch) | |
tree | b957bec413a62e8ce424c51a9cd215b3b24100a2 /gas | |
parent | 3b2215c2ed8e80de3cb665e380a473dd2722cd1f (diff) | |
download | gdb-b6675c1a8e75809c4a58ea2e19b625a36dc6abcf.zip gdb-b6675c1a8e75809c4a58ea2e19b625a36dc6abcf.tar.gz gdb-b6675c1a8e75809c4a58ea2e19b625a36dc6abcf.tar.bz2 |
(md_pcrel_from_section): Add offset to delay slot for
undefined symbols.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-dvp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index c557c11..6670b44 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -890,8 +890,9 @@ md_pcrel_from_section (fixP, sec) || S_GET_SEGMENT (fixP->fx_addsy) != sec)) { /* The symbol is undefined (or is defined but not in this section). - Let the linker figure it out. */ - return 0; + Let the linker figure it out. +8: branch offsets are relative to the + delay slot. */ + return 8; } /* We assume this is a vu branch. @@ -1388,8 +1389,7 @@ insert_operand_final (cpu, operand, mods, insn_buf, val, file, line) { if (operand->bits != 32) { - long min, max; - offsetT test; + offsetT min, max, test; if ((operand->flags & DVP_OPERAND_RELATIVE_BRANCH) != 0) { |