summaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2012-09-08 01:20:27 +0000
committerAnthony Green <green@redhat.com>2012-09-08 01:20:27 +0000
commitfa75401a3f5c44e9f1ca1235135e579b833e26bb (patch)
treef00a3b534bda844db48eeb1347b324b63cbc18be /gas/config
parentfd24acf11f82f6bf2b681acb84b8b1bfa5a0d4c9 (diff)
downloadbinutils-redhat-fa75401a3f5c44e9f1ca1235135e579b833e26bb.tar.gz
Change moxie branch target encodings.
Diffstat (limited to 'gas/config')
-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 2fffc6594c..e73887dc9c 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;