From b6675c1a8e75809c4a58ea2e19b625a36dc6abcf Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 31 Jan 1998 00:04:27 +0000 Subject: [PATCH] (md_pcrel_from_section): Add offset to delay slot for undefined symbols. --- gas/config/tc-dvp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index c557c1170c..6670b44d91 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) {