arc: Fix relocation formula for ARC_NPS_CMEM16 relocation

The ME modifier was missing from the relocation formula for the
ARC_NPS_CMEM16 relocation, and as such the relocation would not patch
correctly on little endian targets.

include/ChangeLog:

	* elf/arc-reloc.def (ARC_NPS_CMEM16): Add ME modifier to formula.
This commit is contained in:
Andrew Burgess 2016-04-19 17:40:41 +01:00
parent 50cc854c48
commit 52176c676d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-04-20 Andrew Burgess <andrew.burgess@embecosm.com>
* elf/arc-reloc.def (ARC_NPS_CMEM16): Add ME modifier to formula.
2016-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
* opcode/arc.h (MAX_INSN_ARGS): Increase 6 to 8.

View File

@ -496,4 +496,4 @@ ARC_RELOC_HOWTO(ARC_NPS_CMEM16, 78, \
16, \
replace_bits16, \
dont, \
( S + A ))
( ME ( S + A )))