From: Anthony Green Date: Sat, 8 Sep 2012 01:20:28 +0000 (+0000) Subject: Change moxie branch target encodings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7078b4097f41309449124a390858941c41cc1c89;p=binutils-gdb.git Change moxie branch target encodings. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 548ed9e38a4..c2446e8c716 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2012-09-07 Anthony Green + + * config/tc-moxie.c (md_pcrel_from): Branches are now relative + to the address following the branch instruction. + 2012-09-06 Andreas Krebbel * config/tc-s390.c (set_highgprs_p): New variable. diff --git a/gas/config/tc-moxie.c b/gas/config/tc-moxie.c index 2fffc6594c8..e73887dc9cb 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;