public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] arc: Update ARC specific linker tests.
@ 2023-04-13  8:25 Claudiu Zissulescu
  0 siblings, 0 replies; only message in thread
From: Claudiu Zissulescu @ 2023-04-13  8:25 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=546c7898dccb204eb56c8ed7c5b707c75de31b53

commit 546c7898dccb204eb56c8ed7c5b707c75de31b53
Author: Claudiu Zissulescu <claziss@synopsys.com>
Date:   Thu Apr 13 11:09:26 2023 +0300

    arc: Update ARC specific linker tests.
    
    All the tests are designed for a little-endian ARC system. Thus,
    update the arc predicate in arc.exp, improve the matching pattern for
    linker relaxation test, and add linker scripts to nps-1x tests.
    
    Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>

Diff:
---
 ld/ChangeLog                          | 7 +++++++
 ld/testsuite/ld-arc/arc.exp           | 2 +-
 ld/testsuite/ld-arc/nps-1a.d          | 2 +-
 ld/testsuite/ld-arc/nps-1b.d          | 2 +-
 ld/testsuite/ld-arc/relax-local-pic.d | 4 ++--
 5 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 7d42a3e663a..6b03cffb34f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-13  Claudiu Zissulescu  <claziss@synopsys.com>
+
+	* testsuite/ld-arc/arc.exp: Update execution predicate.
+	* testsuite/ld-arc/nps-1a.d: Add linker script option.
+	* testsuite/ld-arc/nps-1b.d: Likewise.
+	* testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
+
 2023-04-12  Nick Clifton  <nickc@redhat.com>
 
 	* ld.texi (--enable-non-contiguous-regions): Fix typos in script
diff --git a/ld/testsuite/ld-arc/arc.exp b/ld/testsuite/ld-arc/arc.exp
index 4852d585a7f..d86f44fefb1 100644
--- a/ld/testsuite/ld-arc/arc.exp
+++ b/ld/testsuite/ld-arc/arc.exp
@@ -18,7 +18,7 @@
 # MA 02110-1301, USA.
 #
 
-if { ![istarget arc*-*-*] } {
+if { ![istarget arc-*-*] } {
     return
 }
 
diff --git a/ld/testsuite/ld-arc/nps-1a.d b/ld/testsuite/ld-arc/nps-1a.d
index 4eae02472a3..687191dae1d 100644
--- a/ld/testsuite/ld-arc/nps-1a.d
+++ b/ld/testsuite/ld-arc/nps-1a.d
@@ -1,6 +1,6 @@
 #source: nps-1.s
 #as: -mcpu=arc700 -mnps400
-#ld: -defsym=foo=0x57f03000
+#ld: -defsym=foo=0x57f03000 -T sda-relocs.ld
 #objdump: -d
 
 .*: +file format .*arc.*
diff --git a/ld/testsuite/ld-arc/nps-1b.d b/ld/testsuite/ld-arc/nps-1b.d
index a4848b8b7d8..4845d6b100a 100644
--- a/ld/testsuite/ld-arc/nps-1b.d
+++ b/ld/testsuite/ld-arc/nps-1b.d
@@ -1,4 +1,4 @@
 #source: nps-1.s
 #as: -mcpu=arc700 -mnps400
-#ld: -defsym=foo=0x56f03000
+#ld: -defsym=foo=0x56f03000 -T sda-relocs.ld
 #error_output: nps-1b.err
diff --git a/ld/testsuite/ld-arc/relax-local-pic.d b/ld/testsuite/ld-arc/relax-local-pic.d
index 181a963223a..1cb2cbf057f 100644
--- a/ld/testsuite/ld-arc/relax-local-pic.d
+++ b/ld/testsuite/ld-arc/relax-local-pic.d
@@ -3,12 +3,12 @@
 #ld: -q -A elf32-arclittle -relax
 #objdump: -dr
 
-[^:]+:     file format elf32-.*arc
+[^:]+:     file format elf.*arc
 
 
 Disassembly of section \.text:
 
 [0-9a-f]+ <__start>:
 \s+[0-9a-f]+:	2700 7f84 0000 [0-9a-f]+\s+add\s+r4,pcl,.*
-			[0-9a-f]+: R_ARC_PC32	a_in_other_thread
+\s+[0-9a-f]+: R_ARC_PC32	a_in_other_thread
 \s+[0-9a-f]+:	1c00 [0-9a-f\s]+	st\s+.*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-13  8:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13  8:25 [binutils-gdb] arc: Update ARC specific linker tests 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).