aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-pdp11.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-01 11:19:38 +0000
committerNick Clifton <nickc@redhat.com>2004-10-01 11:19:38 +0000
commit14127cc4f2b98a818bef55c977eb3ea11b0ba5ce (patch)
tree34363f9efc5cf035e143b555d9e8d626803f84d4 /gas/config/tc-pdp11.c
parent99f5fc1b7586022516204077e4a2065d5a689213 (diff)
downloadbinutils-14127cc4f2b98a818bef55c977eb3ea11b0ba5ce.zip
binutils-14127cc4f2b98a818bef55c977eb3ea11b0ba5ce.tar.gz
binutils-14127cc4f2b98a818bef55c977eb3ea11b0ba5ce.tar.bz2
Fixes for the encoding and decoding of the PDP11's SOB instruction
Diffstat (limited to 'gas/config/tc-pdp11.c')
-rw-r--r--gas/config/tc-pdp11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c
index f34adf6..4993fdd 100644
--- a/gas/config/tc-pdp11.c
+++ b/gas/config/tc-pdp11.c
@@ -1,5 +1,5 @@
/* tc-pdp11.c - pdp11-specific -
- Copyright 2001, 2002 Free Software Foundation, Inc.
+ Copyright 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -199,6 +199,7 @@ md_apply_fix3 (fixP, valP, seg)
case BFD_RELOC_PDP11_DISP_6_PCREL:
mask = 0x003f;
shift = 1;
+ val = -val;
break;
default:
BAD_CASE (fixP->fx_r_type);