From 52176c676da5f4b7339f254dc83cb35a0789bf20 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 19 Apr 2016 17:40:41 +0100 Subject: [PATCH] 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. --- include/ChangeLog | 4 ++++ include/elf/arc-reloc.def | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ChangeLog b/include/ChangeLog index ec9adebef7..c4bc144675 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2016-04-20 Andrew Burgess + + * elf/arc-reloc.def (ARC_NPS_CMEM16): Add ME modifier to formula. + 2016-04-19 Andrew Burgess * 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 10703d23a7..faa1389686 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 )))