arc: Fix relocation formula for ARC_NPS_CMEM16 relocation
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 19 Apr 2016 16:40:41 +0000 (17:40 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 20 Apr 2016 10:45:24 +0000 (11:45 +0100)
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.

include/ChangeLog
include/elf/arc-reloc.def

index ec9adeb..c4bc144 100644 (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.
index 10703d2..faa1389 100644 (file)
@@ -496,4 +496,4 @@ ARC_RELOC_HOWTO(ARC_NPS_CMEM16, 78, \
                 16, \
                 replace_bits16, \
                 dont, \
-                ( S + A ))
+                ( ME ( S + A )))