]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
arc: Update ARC specific linker tests.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 13 Apr 2023 08:09:26 +0000 (11:09 +0300)
committerClaudiu Zissulescu <claziss@gmail.com>
Thu, 13 Apr 2023 08:21:01 +0000 (11:21 +0300)
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>
ld/ChangeLog
ld/testsuite/ld-arc/arc.exp
ld/testsuite/ld-arc/nps-1a.d
ld/testsuite/ld-arc/nps-1b.d
ld/testsuite/ld-arc/relax-local-pic.d

index 7d42a3e663a6da499a9e2d7383ba709389c79b1c..6b03cffb34fc0aec849da1c4f93d27d845196e37 100644 (file)
@@ -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
index 4852d585a7f4d378fbcc48d101e400397ae71302..d86f44fefb1e3bc75b45596247b28ec9011c1e5f 100644 (file)
@@ -18,7 +18,7 @@
 # MA 02110-1301, USA.
 #
 
-if { ![istarget arc*-*-*] } {
+if { ![istarget arc-*-*] } {
     return
 }
 
index 4eae02472a37a1ee4d7756cfbc30a75a0c4f85f4..687191dae1db4bc4742c23923a1981fe5936ba14 100644 (file)
@@ -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.*
index a4848b8b7d848c7595a480f7f3e0c43239631443..4845d6b100a2291bc07a1b1f430ee550b7462ab9 100644 (file)
@@ -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
index 181a963223ae4533d4528c8ab7c7e62b6a30fe12..1cb2cbf057ff73b42d9f0ddf327a20239ab58974 100644 (file)
@@ -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+.*