aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-moxie.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-moxie.c')
-rw-r--r--gas/config/tc-moxie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-moxie.c b/gas/config/tc-moxie.c
index 2fffc65..e73887d 100644
--- a/gas/config/tc-moxie.c
+++ b/gas/config/tc-moxie.c
@@ -774,7 +774,8 @@ md_pcrel_from (fixS *fixP)
case BFD_RELOC_32:
return addr + 4;
case BFD_RELOC_MOXIE_10_PCREL:
- return addr;
+ /* Offset is from the end of the instruction. */
+ return addr + 2;
default:
abort ();
return addr;