aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2023-04-13 11:09:26 +0300
committerClaudiu Zissulescu <claziss@gmail.com>2023-04-13 11:21:01 +0300
commit546c7898dccb204eb56c8ed7c5b707c75de31b53 (patch)
tree585ba87f2b691e8770e65511c39e3b8a4db27e70 /ld/testsuite
parentbd6750f0c4c2dea4b6b91919176bc347e76b8a5a (diff)
downloadgdb-546c7898dccb204eb56c8ed7c5b707c75de31b53.zip
gdb-546c7898dccb204eb56c8ed7c5b707c75de31b53.tar.gz
gdb-546c7898dccb204eb56c8ed7c5b707c75de31b53.tar.bz2
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>
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-arc/arc.exp2
-rw-r--r--ld/testsuite/ld-arc/nps-1a.d2
-rw-r--r--ld/testsuite/ld-arc/nps-1b.d2
-rw-r--r--ld/testsuite/ld-arc/relax-local-pic.d4
4 files changed, 5 insertions, 5 deletions
diff --git a/ld/testsuite/ld-arc/arc.exp b/ld/testsuite/ld-arc/arc.exp
index 4852d58..d86f44f 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 4eae024..687191d 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 a4848b8..4845d6b 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 181a963..1cb2cbf 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+.*