* New ARC linker testsuite failure
@ 2016-04-15 8:18 Nick Clifton
2016-04-15 9:12 ` Claudiu Zissulescu
0 siblings, 1 reply; 13+ messages in thread
From: Nick Clifton @ 2016-04-15 8:18 UTC (permalink / raw)
To: andrew.burgess; +Cc: binutils, claziss
Hi Andrew,
I am seeing a new failure in the linker testsuite for an arc-elf
toolchain running on an x86_64 linux host:
regexp_diff match failure
regexp "^ *[0-9a-f]+: 5948 3000 xldb r10,\[0x57f03000\]$"
line " 100: 3000 0000 fmul r0,r0,r0"
regexp_diff match failure
regexp "^ *[0-9a-f]+: 5949 3000 xldw r10,\[0x57f03000\]$"
line " 104: 3000 0000 fmul r0,r0,r0"
regexp_diff match failure
regexp "^ *[0-9a-f]+: 594a 3000 xld r10,\[0x57f03000\]$"
line " 108: 3000 0000 fmul r0,r0,r0"
regexp_diff match failure
regexp "^ *[0-9a-f]+: 594c 3000 xstb r10,\[0x57f03000\]$"
line " 10c: 3000 0000 fmul r0,r0,r0"
regexp_diff match failure
regexp "^ *[0-9a-f]+: 594d 3000 xstw r10,\[0x57f03000\]$"
line " 110: 3000 0000 fmul r0,r0,r0"
regexp_diff match failure
regexp "^ *[0-9a-f]+: 594e 3000 xst r10,\[0x57f03000\]$"
line " 114: 3000 0000 fmul r0,r0,r0"
FAIL: ld-arc/nps-1a
Can you reproduce this ? If so, please could you fix it.
Cheers
Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: New ARC linker testsuite failure
2016-04-15 8:18 New ARC linker testsuite failure Nick Clifton
@ 2016-04-15 9:12 ` Claudiu Zissulescu
2016-04-17 20:29 ` Andrew Burgess
2016-04-19 16:46 ` Andrew Burgess
0 siblings, 2 replies; 13+ messages in thread
From: Claudiu Zissulescu @ 2016-04-15 9:12 UTC (permalink / raw)
To: Nick Clifton, andrew.burgess; +Cc: binutils
Hi Nick,
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.
Thanks,
Claudiu
> -----Original Message-----
> From: Nick Clifton [mailto:nickc@redhat.com]
> Sent: Friday, April 15, 2016 10:18 AM
> To: andrew.burgess@embecosm.com
> Cc: binutils@sourceware.org; Claudiu.Zissulescu@synopsys.com
> Subject: New ARC linker testsuite failure
>
> Hi Andrew,
>
> I am seeing a new failure in the linker testsuite for an arc-elf
> toolchain running on an x86_64 linux host:
>
> regexp_diff match failure
> regexp "^ *[0-9a-f]+: 5948 3000 xldb r10,\[0x57f03000\]$"
> line " 100: 3000 0000 fmul r0,r0,r0"
> regexp_diff match failure
> regexp "^ *[0-9a-f]+: 5949 3000 xldw r10,\[0x57f03000\]$"
> line " 104: 3000 0000 fmul r0,r0,r0"
> regexp_diff match failure
> regexp "^ *[0-9a-f]+: 594a 3000 xld r10,\[0x57f03000\]$"
> line " 108: 3000 0000 fmul r0,r0,r0"
> regexp_diff match failure
> regexp "^ *[0-9a-f]+: 594c 3000 xstb r10,\[0x57f03000\]$"
> line " 10c: 3000 0000 fmul r0,r0,r0"
> regexp_diff match failure
> regexp "^ *[0-9a-f]+: 594d 3000 xstw r10,\[0x57f03000\]$"
> line " 110: 3000 0000 fmul r0,r0,r0"
> regexp_diff match failure
> regexp "^ *[0-9a-f]+: 594e 3000 xst r10,\[0x57f03000\]$"
> line " 114: 3000 0000 fmul r0,r0,r0"
> FAIL: ld-arc/nps-1a
>
> Can you reproduce this ? If so, please could you fix it.
>
> Cheers
> Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New ARC linker testsuite failure
2016-04-15 9:12 ` Claudiu Zissulescu
@ 2016-04-17 20:29 ` Andrew Burgess
2016-04-19 16:46 ` Andrew Burgess
1 sibling, 0 replies; 13+ messages in thread
From: Andrew Burgess @ 2016-04-17 20:29 UTC (permalink / raw)
To: Claudiu Zissulescu; +Cc: Nick Clifton, binutils
* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2016-04-15 09:11:53 +0000]:
> Hi Nick,
>
> 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 will investigate this issue this week.
Thanks for bringing this to my attention.
Andrew
>
> Thanks,
> Claudiu
>
> > -----Original Message-----
> > From: Nick Clifton [mailto:nickc@redhat.com]
> > Sent: Friday, April 15, 2016 10:18 AM
> > To: andrew.burgess@embecosm.com
> > Cc: binutils@sourceware.org; Claudiu.Zissulescu@synopsys.com
> > Subject: New ARC linker testsuite failure
> >
> > Hi Andrew,
> >
> > I am seeing a new failure in the linker testsuite for an arc-elf
> > toolchain running on an x86_64 linux host:
> >
> > regexp_diff match failure
> > regexp "^ *[0-9a-f]+: 5948 3000 xldb r10,\[0x57f03000\]$"
> > line " 100: 3000 0000 fmul r0,r0,r0"
> > regexp_diff match failure
> > regexp "^ *[0-9a-f]+: 5949 3000 xldw r10,\[0x57f03000\]$"
> > line " 104: 3000 0000 fmul r0,r0,r0"
> > regexp_diff match failure
> > regexp "^ *[0-9a-f]+: 594a 3000 xld r10,\[0x57f03000\]$"
> > line " 108: 3000 0000 fmul r0,r0,r0"
> > regexp_diff match failure
> > regexp "^ *[0-9a-f]+: 594c 3000 xstb r10,\[0x57f03000\]$"
> > line " 10c: 3000 0000 fmul r0,r0,r0"
> > regexp_diff match failure
> > regexp "^ *[0-9a-f]+: 594d 3000 xstw r10,\[0x57f03000\]$"
> > line " 110: 3000 0000 fmul r0,r0,r0"
> > regexp_diff match failure
> > regexp "^ *[0-9a-f]+: 594e 3000 xst r10,\[0x57f03000\]$"
> > line " 114: 3000 0000 fmul r0,r0,r0"
> > FAIL: ld-arc/nps-1a
> >
> > Can you reproduce this ? If so, please could you fix it.
> >
> > Cheers
> > Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New ARC linker testsuite failure
2016-04-15 9:12 ` Claudiu Zissulescu
2016-04-17 20:29 ` Andrew Burgess
@ 2016-04-19 16:46 ` Andrew Burgess
2016-04-19 16:57 ` Claudiu Zissulescu
2016-04-20 9:29 ` Nick Clifton
1 sibling, 2 replies; 13+ messages in thread
From: Andrew Burgess @ 2016-04-19 16:46 UTC (permalink / raw)
To: binutils; +Cc: Nick Clifton, Claudiu Zissulescu
* 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: New ARC linker testsuite failure
2016-04-19 16:46 ` Andrew Burgess
@ 2016-04-19 16:57 ` Claudiu Zissulescu
2016-04-19 18:32 ` Andrew Burgess
2016-04-20 9:29 ` Nick Clifton
1 sibling, 1 reply; 13+ messages in thread
From: Claudiu Zissulescu @ 2016-04-19 16:57 UTC (permalink / raw)
To: Andrew Burgess, binutils; +Cc: Nick Clifton
Hi Andrew,
> include/ChangeLog:
>
> * elf/arc-reloc.def (ARC_NPS_CMEM16): Add ME modifier to
> formula.
It is alright. Do you have a test which flexes a bit this newly introduced relocation also in GAS?
Best,
Claudiu
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New ARC linker testsuite failure
2016-04-19 16:57 ` Claudiu Zissulescu
@ 2016-04-19 18:32 ` Andrew Burgess
2016-04-20 9:11 ` Claudiu Zissulescu
0 siblings, 1 reply; 13+ messages in thread
From: Andrew Burgess @ 2016-04-19 18:32 UTC (permalink / raw)
To: Claudiu Zissulescu; +Cc: binutils, Nick Clifton
* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2016-04-19 16:57:03 +0000]:
> > include/ChangeLog:
> >
> > * elf/arc-reloc.def (ARC_NPS_CMEM16): Add ME modifier to
> > formula.
>
> It is alright. Do you have a test which flexes a bit this newly
> introduced relocation also in GAS?
Yes, nps400-3.{d,s} is the assembler test. Is that what you had in
mind?
Thanks,
Andrew
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: New ARC linker testsuite failure
2016-04-19 18:32 ` Andrew Burgess
@ 2016-04-20 9:11 ` Claudiu Zissulescu
0 siblings, 0 replies; 13+ messages in thread
From: Claudiu Zissulescu @ 2016-04-20 9:11 UTC (permalink / raw)
To: Andrew Burgess; +Cc: binutils, Nick Clifton
> Yes, nps400-3.{d,s} is the assembler test. Is that what you had in
> mind?
If this reloc will never be fixed by gas then it is enough.
Best,
Claudiu
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New ARC linker testsuite failure
2016-04-19 16:46 ` Andrew Burgess
2016-04-19 16:57 ` Claudiu Zissulescu
@ 2016-04-20 9:29 ` Nick Clifton
1 sibling, 0 replies; 13+ messages in thread
From: Nick Clifton @ 2016-04-20 9:29 UTC (permalink / raw)
To: Andrew Burgess, binutils; +Cc: Claudiu Zissulescu
Hi Andrew,
> include/ChangeLog:
>
> * elf/arc-reloc.def (ARC_NPS_CMEM16): Add ME modifier to formula.
Approved - please apply.
Cheers
Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: New ARC linker testsuite failure
2017-07-21 9:22 ` Nick Clifton
@ 2017-07-24 8:14 ` Claudiu Zissulescu
0 siblings, 0 replies; 13+ messages in thread
From: Claudiu Zissulescu @ 2017-07-24 8:14 UTC (permalink / raw)
To: Nick Clifton, John.Martin; +Cc: binutils
> Thanks - please apply the patch.
>
Committed. Thank you,
Claudiu
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New ARC linker testsuite failure
2017-07-20 17:11 ` Claudiu Zissulescu
@ 2017-07-21 9:22 ` Nick Clifton
2017-07-24 8:14 ` Claudiu Zissulescu
0 siblings, 1 reply; 13+ messages in thread
From: Nick Clifton @ 2017-07-21 9:22 UTC (permalink / raw)
To: Claudiu Zissulescu, claziss, John.Martin; +Cc: binutils
Hi Claudiu,
> I've fixed the indicated error plus additional two big-endian ARC errors. Please find the patch attached.
Thanks - please apply the patch.
Cheers
Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New ARC linker testsuite failure
2017-07-19 13:48 Nick Clifton
2017-07-20 10:12 ` Claudiu Zissulescu
@ 2017-07-20 17:11 ` Claudiu Zissulescu
2017-07-21 9:22 ` Nick Clifton
1 sibling, 1 reply; 13+ messages in thread
From: Claudiu Zissulescu @ 2017-07-20 17:11 UTC (permalink / raw)
To: Nick Clifton, claziss, John.Martin; +Cc: binutils
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
Hi Nick,
I've fixed the indicated error plus additional two big-endian ARC
errors. Please find the patch attached.
Thank you,
Claudiu
[-- Attachment #2: 0001-ARC-Fix-big-endian-ld-tests-errors.patch --]
[-- Type: text/plain, Size: 1867 bytes --]
From 7bc6f91e3c38c5cd7612a14696f509058594ce24 Mon Sep 17 00:00:00 2001
From: Claudiu Zissulescu <claziss@gmail.com>
Date: Thu, 20 Jul 2017 12:47:30 -0400
Subject: [PATCH] [ARC] Fix big-endian ld tests errors.
A set of small patches that are fixing big-endian observed errors.
ld/
2017-07-20 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/ld-arc/jli-overflow.d: Force testing for little
endian.
* testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian
systems.
* testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems.
---
ld/testsuite/ld-arc/jli-overflow.d | 4 ++--
ld/testsuite/ld-arc/tls_gd-01.d | 2 +-
ld/testsuite/ld-arc/tls_ie-01.d | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ld/testsuite/ld-arc/jli-overflow.d b/ld/testsuite/ld-arc/jli-overflow.d
index b1a2663..6445b2a 100644
--- a/ld/testsuite/ld-arc/jli-overflow.d
+++ b/ld/testsuite/ld-arc/jli-overflow.d
@@ -1,4 +1,4 @@
#source: jli-overflow.s
-#as:
-#ld: -q -T jli-script.ld
+#as: -EL
+#ld: -q -T jli-script.ld -A elf32-arclittle
#error_output: jli-overflow.err
diff --git a/ld/testsuite/ld-arc/tls_gd-01.d b/ld/testsuite/ld-arc/tls_gd-01.d
index e789157..d65f2cd 100644
--- a/ld/testsuite/ld-arc/tls_gd-01.d
+++ b/ld/testsuite/ld-arc/tls_gd-01.d
@@ -4,7 +4,7 @@
#objdump: -d
#xfail: arc*-*-elf*
-[^:]+: file format elf32-littlearc
+[^:]+: file format elf32-.*arc
Disassembly of section \.text:
diff --git a/ld/testsuite/ld-arc/tls_ie-01.d b/ld/testsuite/ld-arc/tls_ie-01.d
index 62b3932..e4af7c2 100644
--- a/ld/testsuite/ld-arc/tls_ie-01.d
+++ b/ld/testsuite/ld-arc/tls_ie-01.d
@@ -4,7 +4,7 @@
#objdump: -s -j .got
#xfail: arc*-*-elf*
-[^:]+: file format elf32-littlearc
+[^:]+: file format elf32-.*arc
Contents of section \.got:
- [0-9a-f]+ 08000000 0c000000 +.+
+ [0-9a-f]+ [08]+ [0c]+ +.+
--
2.9.3
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: New ARC linker testsuite failure
2017-07-19 13:48 Nick Clifton
@ 2017-07-20 10:12 ` Claudiu Zissulescu
2017-07-20 17:11 ` Claudiu Zissulescu
1 sibling, 0 replies; 13+ messages in thread
From: Claudiu Zissulescu @ 2017-07-20 10:12 UTC (permalink / raw)
To: Nick Clifton, John.Martin; +Cc: binutils
Sure, sorry for this.
Claudiu
> -----Original Message-----
> From: Nick Clifton [mailto:nickc@redhat.com]
> Sent: Wednesday, July 19, 2017 3:49 PM
> To: Claudiu.Zissulescu@synopsys.com; John.Martin@emmicro-us.com
> Cc: binutils@sourceware.org
> Subject: New ARC linker testsuite failure
>
> Hi Claudiu, Hi John,
>
> A new linker testsuite failure has just shown up:
>
> FAIL: ld-arc/jli-overflow
>
> This is only with the arceb-elf target and the log file appears to
> suggest that you need to add an endian specifier when linking:
>
> ./ld-new: tmpdir/jli-overflow.o: compiled for a big endian system and target
> is little endian
> ./ld-new: failed to merge target specific data of file tmpdir/jli-overflow.o
> tmpdir/jli-overflow.o: In function `test_1025':
> (.text+0x2004): relocation truncated to fit: R_ARC_JLI_SECTOFF against
> symbol `__jli.func1025' defined in .jlitab[.jlitab.func1025] section in tmpdir/jli-
> overflow.o
> ./ld-new: final link failed: Symbol needs debug section which does not exist
>
> Could you take a look at this please ?
>
> Cheers
> Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
* New ARC linker testsuite failure
@ 2017-07-19 13:48 Nick Clifton
2017-07-20 10:12 ` Claudiu Zissulescu
2017-07-20 17:11 ` Claudiu Zissulescu
0 siblings, 2 replies; 13+ messages in thread
From: Nick Clifton @ 2017-07-19 13:48 UTC (permalink / raw)
To: claziss, John.Martin; +Cc: binutils
Hi Claudiu, Hi John,
A new linker testsuite failure has just shown up:
FAIL: ld-arc/jli-overflow
This is only with the arceb-elf target and the log file appears to
suggest that you need to add an endian specifier when linking:
./ld-new: tmpdir/jli-overflow.o: compiled for a big endian system and target is little endian
./ld-new: failed to merge target specific data of file tmpdir/jli-overflow.o
tmpdir/jli-overflow.o: In function `test_1025':
(.text+0x2004): relocation truncated to fit: R_ARC_JLI_SECTOFF against symbol `__jli.func1025' defined in .jlitab[.jlitab.func1025] section in tmpdir/jli-overflow.o
./ld-new: final link failed: Symbol needs debug section which does not exist
Could you take a look at this please ?
Cheers
Nick
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-07-24 8:14 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-15 8:18 New ARC linker testsuite failure Nick Clifton
2016-04-15 9:12 ` Claudiu Zissulescu
2016-04-17 20:29 ` Andrew Burgess
2016-04-19 16:46 ` Andrew Burgess
2016-04-19 16:57 ` Claudiu Zissulescu
2016-04-19 18:32 ` Andrew Burgess
2016-04-20 9:11 ` Claudiu Zissulescu
2016-04-20 9:29 ` Nick Clifton
2017-07-19 13:48 Nick Clifton
2017-07-20 10:12 ` Claudiu Zissulescu
2017-07-20 17:11 ` Claudiu Zissulescu
2017-07-21 9:22 ` Nick Clifton
2017-07-24 8:14 ` Claudiu Zissulescu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).