[binutils-gdb] tic54x ld testsuite

Alan Modra amodra@sourceware.org
Tue Aug 25 13:37:40 GMT 2020


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

commit 8d3035466746825cd5909cf045cf841222989ec6
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Aug 25 01:59:55 2020 +0930

    tic54x ld testsuite
    
            * testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x.
            * testsuite/ld-scripts/data.d: xfail tic4x and tic54x.
            * testsuite/ld-scripts/empty-address-2a.d: xfail tic54x.
            * testsuite/ld-scripts/empty-address-2b.d: Likewise.
            * testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x.
            * testsuite/ld-scripts/provide-1.d: xfail tic54x.
            * testsuite/ld-scripts/provide-2.d: Likewise.
            * testsuite/ld-scripts/provide-4.d: Likewise.

Diff:
---
 ld/ChangeLog                               | 11 +++++++++++
 ld/testsuite/ld-libs/libs.exp              |  7 +++++++
 ld/testsuite/ld-scripts/data.d             |  1 +
 ld/testsuite/ld-scripts/empty-address-2a.d |  2 +-
 ld/testsuite/ld-scripts/empty-address-2b.d |  2 +-
 ld/testsuite/ld-scripts/include-1.d        |  1 +
 ld/testsuite/ld-scripts/provide-1.d        |  1 +
 ld/testsuite/ld-scripts/provide-2.d        |  2 ++
 ld/testsuite/ld-scripts/provide-4.d        |  2 ++
 9 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2cb00a3a6b3..a12f91302b7 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,14 @@
+2020-08-25  Alan Modra  <amodra@gmail.com>
+
+	* testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x.
+	* testsuite/ld-scripts/data.d: xfail tic4x and tic54x.
+	* testsuite/ld-scripts/empty-address-2a.d: xfail tic54x.
+	* testsuite/ld-scripts/empty-address-2b.d: Likewise.
+	* testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x.
+	* testsuite/ld-scripts/provide-1.d: xfail tic54x.
+	* testsuite/ld-scripts/provide-2.d: Likewise.
+	* testsuite/ld-scripts/provide-4.d: Likewise.
+
 2020-08-24  Alan Modra  <amodra@gmail.com>
 
 	* testsuite/ld-sparc/tlssunbin32.rd: Update for new readelf output.
diff --git a/ld/testsuite/ld-libs/libs.exp b/ld/testsuite/ld-libs/libs.exp
index 42cab4ba402..2cb9bcb8134 100644
--- a/ld/testsuite/ld-libs/libs.exp
+++ b/ld/testsuite/ld-libs/libs.exp
@@ -19,6 +19,13 @@
 # MA 02110-1301, USA.
 #
 
+if { [istarget sh*-*-pe]
+     || [istarget tic30-*-*]
+     || [istarget tic54x-*-*] } {
+    # These all complain about a zero vma .text and other sections
+    return
+}
+
 file mkdir tmpdir/libtmp
 
 # Check that -l: works.  The first "test" just creates an object file
diff --git a/ld/testsuite/ld-scripts/data.d b/ld/testsuite/ld-scripts/data.d
index 10b3d085f6e..b7ca0a741ce 100644
--- a/ld/testsuite/ld-scripts/data.d
+++ b/ld/testsuite/ld-scripts/data.d
@@ -1,6 +1,7 @@
 #source: data.s
 #ld: -T data.t
 #objdump: -s -j .text
+#xfail: tic4x-*-* tic54x-*-*
 
 .*:     file format .*
 
diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d
index 85aa648531d..3b5a2d68f72 100644
--- a/ld/testsuite/ld-scripts/empty-address-2a.d
+++ b/ld/testsuite/ld-scripts/empty-address-2a.d
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t
 #nm: -n
-#xfail: frv-*-*linux* riscv64-*-*
+#xfail: frv-*-*linux* riscv64-*-* tic54x-*-*
 #...
 0+0 T _start
 #...
diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d
index 9e6bc3d1de0..3b530c94d86 100644
--- a/ld/testsuite/ld-scripts/empty-address-2b.d
+++ b/ld/testsuite/ld-scripts/empty-address-2b.d
@@ -1,7 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t
 #nm: -n
-#xfail: frv-*-*linux* riscv64-*-*
+#xfail: frv-*-*linux* riscv64-*-* tic54x-*-*
 #...
 0+0 T _start
 #...
diff --git a/ld/testsuite/ld-scripts/include-1.d b/ld/testsuite/ld-scripts/include-1.d
index 117d3314198..1482dd46a13 100644
--- a/ld/testsuite/ld-scripts/include-1.d
+++ b/ld/testsuite/ld-scripts/include-1.d
@@ -2,6 +2,7 @@
 #source: include.s
 #ld: -T include-1.t
 #objdump: -w -h
+#xfail: tic4x-*-* tic54x-*-*
 
 .*:     file format .*
 
diff --git a/ld/testsuite/ld-scripts/provide-1.d b/ld/testsuite/ld-scripts/provide-1.d
index ac8719a6771..1bc3c1e49da 100644
--- a/ld/testsuite/ld-scripts/provide-1.d
+++ b/ld/testsuite/ld-scripts/provide-1.d
@@ -1,6 +1,7 @@
 #source: provide-1.s
 #ld: -T provide-1.t
 #objdump: -s -j .data
+#xfail: tic54x-*-*
 
 .*:     file format .*
 
diff --git a/ld/testsuite/ld-scripts/provide-2.d b/ld/testsuite/ld-scripts/provide-2.d
index 88513e8cbde..0b94e29f938 100644
--- a/ld/testsuite/ld-scripts/provide-2.d
+++ b/ld/testsuite/ld-scripts/provide-2.d
@@ -1,6 +1,8 @@
 #source: provide-2.s
 #ld: -T provide-2.t
 #nm: -B
+#xfail: tic54x-*-*
+
 #...
 0+3 A baz
 #...
diff --git a/ld/testsuite/ld-scripts/provide-4.d b/ld/testsuite/ld-scripts/provide-4.d
index dab25847fbe..8efc8a65f82 100644
--- a/ld/testsuite/ld-scripts/provide-4.d
+++ b/ld/testsuite/ld-scripts/provide-4.d
@@ -2,6 +2,8 @@
 #ld: -T provide-4.t
 #nm: -B
 #map: provide-4.map
+#xfail: tic54x-*-*
+
 #...
 0+3 A baz
 #...


More information about the Binutils-cvs mailing list