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 ec9adebef74fe6b91d0bb287ac67293520d73178..c4bc144675f089b51b5732bf95a52ceb355b6530 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 10703d23a775adad5bf4cca51156d50883aeadf9..faa1389686d71ae1aadd74bd135743a503d755d3 100644 (file)
@@ -496,4 +496,4 @@ ARC_RELOC_HOWTO(ARC_NPS_CMEM16, 78, \
                 16, \
                 replace_bits16, \
                 dont, \
-                ( S + A ))
+                ( ME ( S + A )))
This page took 0.02722 seconds and 4 git commands to generate.