aboutsummaryrefslogtreecommitdiff
path: root/include/elf
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 /include/elf
parent50cc854c48e79d9b8a2c55c117918d6a719bea38 (diff)
downloadgdb-52176c676da5f4b7339f254dc83cb35a0789bf20.zip
gdb-52176c676da5f4b7339f254dc83cb35a0789bf20.tar.gz
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.
Diffstat (limited to 'include/elf')
-rw-r--r--include/elf/arc-reloc.def2
1 files changed, 1 insertions, 1 deletions
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 )))