From: Andrew Burgess Date: Tue, 19 Apr 2016 16:40:41 +0000 (+0100) Subject: arc: Fix relocation formula for ARC_NPS_CMEM16 relocation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52176c676da5f4b7339f254dc83cb35a0789bf20;p=binutils-gdb.git 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. --- diff --git a/include/ChangeLog b/include/ChangeLog index ec9adebef74..c4bc144675f 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 10703d23a77..faa1389686d 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 )))