From 8d3035466746825cd5909cf045cf841222989ec6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 25 Aug 2020 01:59:55 +0930 Subject: [PATCH] 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. --- 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 2cb00a3a6b..a12f91302b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,14 @@ +2020-08-25 Alan Modra + + * 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 * 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 42cab4ba40..2cb9bcb813 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 10b3d085f6..b7ca0a741c 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 85aa648531..3b5a2d68f7 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 9e6bc3d1de..3b530c94d8 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 117d331419..1482dd46a1 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 ac8719a677..1bc3c1e49d 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 88513e8cbd..0b94e29f93 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 dab25847fb..8efc8a65f8 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 #... -- 2.34.1