aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-04-19 17:40:41 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-04-20 11:45:24 +0100
commit52176c676da5f4b7339f254dc83cb35a0789bf20 (patch)
treed5871f621871e6a16c766a2dc4ce6776c50aaf74
parent50cc854c48e79d9b8a2c55c117918d6a719bea38 (diff)
downloadfsf-binutils-gdb-52176c676da5f4b7339f254dc83cb35a0789bf20.zip
fsf-binutils-gdb-52176c676da5f4b7339f254dc83cb35a0789bf20.tar.gz
fsf-binutils-gdb-52176c676da5f4b7339f254dc83cb35a0789bf20.tar.bz2
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.
-rw-r--r--include/ChangeLog4
-rw-r--r--include/elf/arc-reloc.def2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index ec9adeb..c4bc144 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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.
diff --git a/include/elf/arc-reloc.def b/include/elf/arc-reloc.def
index 10703d2..faa1389 100644
--- a/include/elf/arc-reloc.def
+++ b/include/elf/arc-reloc.def
@@ -496,4 +496,4 @@ ARC_RELOC_HOWTO(ARC_NPS_CMEM16, 78, \
16, \
replace_bits16, \
dont, \
- ( S + A ))
+ ( ME ( S + A )))