This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New ARC linker testsuite failure


* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2016-04-15 09:11:53 +0000]:

> Issue confirmed. The fmul opcode is overlapping with nps400' x*
> opcodes. Andrew needs to make a better filter in the disassembler
> for those cases.
> 
> Andrew please confirm if you will fix this issue, or I need to
> handle it.

I believe the patch below is all that is required to resolve this
issue.  OK to apply?

Thanks,
Andrew

---

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/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 )))
-- 
2.5.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]