aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2012-09-08 01:20:28 +0000
committerAnthony Green <green@redhat.com>2012-09-08 01:20:28 +0000
commit7078b4097f41309449124a390858941c41cc1c89 (patch)
tree5a2dab9021631d01986ef475d9a1648848afb9dc /gas/config
parent5eb2d774965758e651b72782e307c8da87cc640e (diff)
downloadgdb-7078b4097f41309449124a390858941c41cc1c89.zip
gdb-7078b4097f41309449124a390858941c41cc1c89.tar.gz
gdb-7078b4097f41309449124a390858941c41cc1c89.tar.bz2
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 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;