summaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-03-09 11:53:16 +1030
committerAlan Modra <amodra@gmail.com>2023-03-10 21:22:16 +1030
commit75bd292bea53d6ce8de66f30d67c2edb4a558110 (patch)
tree82b642338ab4ecb6404ea72442d4d40e5a3cb64b /ld/testsuite
parent36ba37c085438d23de2289ea17b56e7b91d1c5c5 (diff)
Revert ld DIGEST support
This is a hopefully temporary reversion of new ld features for embedded processors by Ulf Samuelsson, plus some followup patches. Squashed together from the following: Revert "lddigest 32-bit support and gcc-4 compile errors" This reverts commit d7ee19be87110a8f5342cec6e323d83d01c641d1. Revert "ld: Use correct types for crc64 calculations" This reverts commit 9a534b9f8e3d0f3cdb5a20f19ff165693fbb84d2. Revert "Re: DIGEST: testsuite" This reverts commit c8e85484d8a0fe9f7b88e00a6b9ae63bcb53ba32. Revert "Regen potfiles" This reverts commit 4d98c966f8bf305ab25badd34cb295631873cf7c. Revert "DIGEST: Makefile.*" This reverts commit 78ef6ab03f56ce83a606d974bb8a9f34b5d6e0b7. Revert "DIGEST: calculation" This reverts commit 5243990191e683d5066d3dd622c76deaba0bf15c. Revert "DIGEST: ldlang.*: add timestamp" This reverts commit bd9466d4aa277a469a9d8b12f0a6e6fa51678e36. Revert "DIGEST: ldmain.c" This reverts commit c8f8653fa7eeb3dc0769ac23039eadb5c5f09dff. Revert "DIGEST: ldgram.y" This reverts commit d73c01be2669e9c5267fab669a269f95a32048c9. Revert "DIGEST: ldlex.l" This reverts commit 48b5163a9dd5759cc87171331bbd6e902c547b5a. Revert "DIGEST: testsuite" This reverts commit a4135d1a4886400ea29af2da782dd8dd40ccad23. Revert "DIGEST: Documentation" This reverts commit 3ec28966c3e4c63704212778f96c517cbf2e0090. Revert "DIGEST: NEWS" This reverts commit 099bf2927d446424e8585a60cf4ce63209999aa2. Revert "DIGEST: LICENSING" This reverts commit 5c8a0c6654fb55926985edf3b360b62d4f20691d.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-scripts/begin_tag.inc9
-rw-r--r--ld/testsuite/ld-scripts/crc32-poly.d26
-rw-r--r--ld/testsuite/ld-scripts/crc32-poly.s21
-rw-r--r--ld/testsuite/ld-scripts/crc32-poly.t42
-rw-r--r--ld/testsuite/ld-scripts/crc32.d26
-rw-r--r--ld/testsuite/ld-scripts/crc32.s21
-rw-r--r--ld/testsuite/ld-scripts/crc32.t41
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-endian-contents.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-endian-contents.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-endian-contents.t44
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-endian-size.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-endian-size.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-endian-size.t44
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-label-2.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-label-2.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-label-2.t44
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-label.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-label.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-bad-label.t44
-rw-r--r--ld/testsuite/ld-scripts/crc64-ecma.d23
-rw-r--r--ld/testsuite/ld-scripts/crc64-ecma.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-ecma.t44
-rw-r--r--ld/testsuite/ld-scripts/crc64-in-section.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-in-section.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-in-section.t45
-rw-r--r--ld/testsuite/ld-scripts/crc64-iso.d23
-rw-r--r--ld/testsuite/ld-scripts/crc64-iso.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-iso.t43
-rw-r--r--ld/testsuite/ld-scripts/crc64-iso_be.d23
-rw-r--r--ld/testsuite/ld-scripts/crc64-iso_be.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-iso_be.t43
-rw-r--r--ld/testsuite/ld-scripts/crc64-multiple-digest.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-multiple-digest.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-multiple-digest.t45
-rw-r--r--ld/testsuite/ld-scripts/crc64-poly-size.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-poly-size.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-poly-size.t43
-rw-r--r--ld/testsuite/ld-scripts/crc64-poly.d23
-rw-r--r--ld/testsuite/ld-scripts/crc64-poly.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-poly.t43
-rw-r--r--ld/testsuite/ld-scripts/crc64-reverse-area.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-reverse-area.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-reverse-area.t44
-rw-r--r--ld/testsuite/ld-scripts/crc64-same-section.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-same-section.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-same-section.t47
-rw-r--r--ld/testsuite/ld-scripts/crc64-section.d23
-rw-r--r--ld/testsuite/ld-scripts/crc64-section.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-section.t56
-rw-r--r--ld/testsuite/ld-scripts/crc64-unknown-digest.d5
-rw-r--r--ld/testsuite/ld-scripts/crc64-unknown-digest.s21
-rw-r--r--ld/testsuite/ld-scripts/crc64-unknown-digest.t44
-rw-r--r--ld/testsuite/ld-scripts/crc_data.inc9
-rw-r--r--ld/testsuite/ld-scripts/digest_table.inc6
-rw-r--r--ld/testsuite/ld-scripts/digest_table_be.inc6
-rw-r--r--ld/testsuite/ld-scripts/end_tag.inc9
-rw-r--r--ld/testsuite/ld-scripts/script.exp17
57 files changed, 0 insertions, 1386 deletions
diff --git a/ld/testsuite/ld-scripts/begin_tag.inc b/ld/testsuite/ld-scripts/begin_tag.inc
deleted file mode 100644
index ef395bbe717..00000000000
--- a/ld/testsuite/ld-scripts/begin_tag.inc
+++ /dev/null
@@ -1,9 +0,0 @@
- BYTE(0x43);
- BYTE(0x4F);
- BYTE(0x44);
- BYTE(0x45);
- BYTE(0xDE);
- BYTE(0xAD);
- BYTE(0xBE);
- BYTE(0xEF);
- QUAD(0);
diff --git a/ld/testsuite/ld-scripts/crc32-poly.d b/ld/testsuite/ld-scripts/crc32-poly.d
deleted file mode 100644
index 726534d32d9..00000000000
--- a/ld/testsuite/ld-scripts/crc32-poly.d
+++ /dev/null
@@ -1,26 +0,0 @@
-#source: crc32-poly.s
-#ld: -T crc32-poly.t
-#objdump: -s -j .text
-#target: [is_elf_format] [is_coff_format]
-#notarget: [is_aout_format]
-#xfail: tic4x-*-* tic54x-*-*
-#skip: ns32k-pc532-macho, pdp11-dec-aout, powerpc-ibm-aix5.2.0
-#skip: rs6000-aix4.3.3, alpha-linuxecoff
-
-.*: file format .*
-
-Contents of section .text:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 cbf43926 00000000 00000000 00000000 ..9&............
- 1220 cbf43926 00000000 00000000 00000000 ..9&............
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 1c00 454e4420 5441424c 45000000 00000000 END TABLE.......
- 1c10 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc32-poly.s b/ld/testsuite/ld-scripts/crc32-poly.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc32-poly.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc32-poly.t b/ld/testsuite/ld-scripts/crc32-poly.t
deleted file mode 100644
index a2b7d130ba7..00000000000
--- a/ld/testsuite/ld-scripts/crc32-poly.t
+++ /dev/null
@@ -1,42 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0xCB);
- BYTE(0xF4);
- BYTE(0x39);
- BYTE(0x26);
- LONG(0x0);
- QUAD(0x0);
-
-
- crc32 = .;
- DIGEST "_CRC32#BE" POLY(32, 0x04C11DB7, 0xFFFFFFFF,0xFFFFFFFF,1,1,0 )(ecc_start , ecc_end)
- LONG(0);
- QUAD(0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc32.d b/ld/testsuite/ld-scripts/crc32.d
deleted file mode 100644
index e35eaf8e53e..00000000000
--- a/ld/testsuite/ld-scripts/crc32.d
+++ /dev/null
@@ -1,26 +0,0 @@
-#source: crc32.s
-#ld: -T crc32.t
-#objdump: -s -j .text
-#target: [is_elf_format] [is_coff_format]
-#notarget: [is_aout_format]
-#xfail: tic4x-*-* tic54x-*-*
-#skip: ns32k-pc532-macho, pdp11-dec-aout, powerpc-ibm-aix5.2.0
-#skip: rs6000-aix4.3.3, alpha-linuxecoff
-
-.*: file format .*
-
-Contents of section .text:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 cbf43926 00000000 00000000 00000000 ..9&............
- 1220 cbf43926 00000000 00000000 00000000 ..9&............
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 1c00 454e4420 5441424c 45000000 00000000 END TABLE.......
- 1c10 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc32.s b/ld/testsuite/ld-scripts/crc32.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc32.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc32.t b/ld/testsuite/ld-scripts/crc32.t
deleted file mode 100644
index b218ef1424f..00000000000
--- a/ld/testsuite/ld-scripts/crc32.t
+++ /dev/null
@@ -1,41 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0xCB);
- BYTE(0xF4);
- BYTE(0x39);
- BYTE(0x26);
- LONG(0x0);
- QUAD(0x0);
-
- crc32 = .;
- DIGEST "_CRC32#BE" "CRC32" (ecc_start , ecc_end);
- LONG(0);
- QUAD(0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-bad-endian-contents.d b/ld/testsuite/ld-scripts/crc64-bad-endian-contents.d
deleted file mode 100644
index 148297dbcd5..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-endian-contents.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-bad-endian-size.s
-#ld: -T crc64-bad-endian-size.t
-# error: .*: bad 'endian' .* in digest label.*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-bad-endian-contents.s b/ld/testsuite/ld-scripts/crc64-bad-endian-contents.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-endian-contents.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-bad-endian-contents.t b/ld/testsuite/ld-scripts/crc64-bad-endian-contents.t
deleted file mode 100644
index 8eecaf06dc8..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-endian-contents.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#NE" "CRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-bad-endian-size.d b/ld/testsuite/ld-scripts/crc64-bad-endian-size.d
deleted file mode 100644
index 148297dbcd5..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-endian-size.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-bad-endian-size.s
-#ld: -T crc64-bad-endian-size.t
-# error: .*: bad 'endian' .* in digest label.*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-bad-endian-size.s b/ld/testsuite/ld-scripts/crc64-bad-endian-size.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-endian-size.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-bad-endian-size.t b/ld/testsuite/ld-scripts/crc64-bad-endian-size.t
deleted file mode 100644
index 8f9cd600773..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-endian-size.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BEG" "CRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-bad-label-2.d b/ld/testsuite/ld-scripts/crc64-bad-label-2.d
deleted file mode 100644
index 07584618235..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-label-2.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-bad-label-2.s
-#ld: -T crc64-bad-label-2.t
-# error: .*: Illegal label .* in digest command.*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-bad-label-2.s b/ld/testsuite/ld-scripts/crc64-bad-label-2.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-label-2.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-bad-label-2.t b/ld/testsuite/ld-scripts/crc64-bad-label-2.t
deleted file mode 100644
index 19782bf827d..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-label-2.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC^64#BE" "CRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-bad-label.d b/ld/testsuite/ld-scripts/crc64-bad-label.d
deleted file mode 100644
index 37c2bb2bae9..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-label.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-bad-label.s
-#ld: -T crc64-bad-label.t
-# error: .*: Illegal label .* in digest command.*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-bad-label.s b/ld/testsuite/ld-scripts/crc64-bad-label.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-label.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-bad-label.t b/ld/testsuite/ld-scripts/crc64-bad-label.t
deleted file mode 100644
index 8c0941c674b..00000000000
--- a/ld/testsuite/ld-scripts/crc64-bad-label.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "0_CRC64#BE" "CRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-ecma.d b/ld/testsuite/ld-scripts/crc64-ecma.d
deleted file mode 100644
index 1c92ff78476..00000000000
--- a/ld/testsuite/ld-scripts/crc64-ecma.d
+++ /dev/null
@@ -1,23 +0,0 @@
-#source: crc64-ecma.s
-#ld: -T crc64-ecma.t
-#objdump: -s -j .text
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
-
-.*: file format .*
-
-Contents of section .text:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 6c40df5f 0b497347 00000000 00000000 l@._.IsG........
- 1220 6c40df5f 0b497347 00000000 00000000 l@._.IsG........
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 2000 454e4420 5441424c 45000000 00000000 END TABLE.......
- 2010 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc64-ecma.s b/ld/testsuite/ld-scripts/crc64-ecma.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-ecma.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-ecma.t b/ld/testsuite/ld-scripts/crc64-ecma.t
deleted file mode 100644
index 2a82039a93e..00000000000
--- a/ld/testsuite/ld-scripts/crc64-ecma.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" "CRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-in-section.d b/ld/testsuite/ld-scripts/crc64-in-section.d
deleted file mode 100644
index ede5d524cee..00000000000
--- a/ld/testsuite/ld-scripts/crc64-in-section.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-in-section.s
-#ld: -T crc64-in-section.t
-#error: .*: CRC located inside checked area
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-in-section.s b/ld/testsuite/ld-scripts/crc64-in-section.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-in-section.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-in-section.t b/ld/testsuite/ld-scripts/crc64-in-section.t
deleted file mode 100644
index e2e8cd99e8b..00000000000
--- a/ld/testsuite/ld-scripts/crc64-in-section.t
+++ /dev/null
@@ -1,45 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- bad_start = .;
- DIGEST "_CRC64#BE" "CRC64-ECMA" (bad_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-iso.d b/ld/testsuite/ld-scripts/crc64-iso.d
deleted file mode 100644
index af416d02082..00000000000
--- a/ld/testsuite/ld-scripts/crc64-iso.d
+++ /dev/null
@@ -1,23 +0,0 @@
-#source: crc64-iso.s
-#ld: -T crc64-iso.t
-#objdump: -s -j .text
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
-
-.*: file format .*
-
-Contents of section .text:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 b90956c7 75a41001 00000000 00000000 ..V.u...........
- 1220 b90956c7 75a41001 00000000 00000000 ..V.u...........
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 2000 454e4420 5441424c 45000000 00000000 END TABLE.......
- 2010 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc64-iso.s b/ld/testsuite/ld-scripts/crc64-iso.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-iso.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-iso.t b/ld/testsuite/ld-scripts/crc64-iso.t
deleted file mode 100644
index 20dedc47d12..00000000000
--- a/ld/testsuite/ld-scripts/crc64-iso.t
+++ /dev/null
@@ -1,43 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0xb9);
- BYTE(0x09);
- BYTE(0x56);
- BYTE(0xc7);
- BYTE(0x75);
- BYTE(0xa4);
- BYTE(0x10);
- BYTE(0x01);
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" "CRC64-GO-ISO" (ecc_start , ecc_end)
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-iso_be.d b/ld/testsuite/ld-scripts/crc64-iso_be.d
deleted file mode 100644
index 0707aae4b9f..00000000000
--- a/ld/testsuite/ld-scripts/crc64-iso_be.d
+++ /dev/null
@@ -1,23 +0,0 @@
-#source: crc64-iso_be.s
-#ld: -T crc64-iso_be.t
-#objdump: -s -j .text
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
-
-.*: file format .*
-
-Contents of section .text:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 0110a475 c75609b9 00000000 00000000 ...u.V..........
- 1220 0110a475 c75609b9 00000000 00000000 ...u.V..........
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 2000 454e4420 5441424c 45000000 00000000 END TABLE.......
- 2010 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc64-iso_be.s b/ld/testsuite/ld-scripts/crc64-iso_be.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-iso_be.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-iso_be.t b/ld/testsuite/ld-scripts/crc64-iso_be.t
deleted file mode 100644
index 22cc37ca304..00000000000
--- a/ld/testsuite/ld-scripts/crc64-iso_be.t
+++ /dev/null
@@ -1,43 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x01);
- BYTE(0x10);
- BYTE(0xa4);
- BYTE(0x75);
- BYTE(0xc7);
- BYTE(0x56);
- BYTE(0x09);
- BYTE(0xb9);
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64" "CRC64-GO-ISO" (ecc_start , ecc_end)
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table_be.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-multiple-digest.d b/ld/testsuite/ld-scripts/crc64-multiple-digest.d
deleted file mode 100644
index c0279147a1e..00000000000
--- a/ld/testsuite/ld-scripts/crc64-multiple-digest.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-multiple-digest.s
-#ld: -T crc64-multiple-digest.t
-# error: .*: Duplicate digest .*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-multiple-digest.s b/ld/testsuite/ld-scripts/crc64-multiple-digest.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-multiple-digest.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-multiple-digest.t b/ld/testsuite/ld-scripts/crc64-multiple-digest.t
deleted file mode 100644
index 49c1119ad1c..00000000000
--- a/ld/testsuite/ld-scripts/crc64-multiple-digest.t
+++ /dev/null
@@ -1,45 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64A#BE" "CRC64-ECMA" (ecc_start , ecc_end);
- DIGEST "_CRC64B#BE" "CRC64-ISO" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-poly-size.d b/ld/testsuite/ld-scripts/crc64-poly-size.d
deleted file mode 100644
index 1c7b3c46881..00000000000
--- a/ld/testsuite/ld-scripts/crc64-poly-size.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-poly-size.s
-#ld: -T crc64-poly-size.t
-# error: .*: Invalid Size in DIGEST
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-poly-size.s b/ld/testsuite/ld-scripts/crc64-poly-size.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-poly-size.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-poly-size.t b/ld/testsuite/ld-scripts/crc64-poly-size.t
deleted file mode 100644
index 8dad7186b9f..00000000000
--- a/ld/testsuite/ld-scripts/crc64-poly-size.t
+++ /dev/null
@@ -1,43 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" POLY(80,0x42F0E1EBA9EA3693,0,0,0,0,0)(ecc_start , ecc_end)
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-poly.d b/ld/testsuite/ld-scripts/crc64-poly.d
deleted file mode 100644
index b54ac47e448..00000000000
--- a/ld/testsuite/ld-scripts/crc64-poly.d
+++ /dev/null
@@ -1,23 +0,0 @@
-#source: crc64-poly.s
-#ld: -T crc64-poly.t
-#objdump: -s -j .text
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
-
-.*: file format .*
-
-Contents of section .text:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 6c40df5f 0b497347 00000000 00000000 l@._.IsG........
- 1220 6c40df5f 0b497347 00000000 00000000 l@._.IsG........
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 2000 454e4420 5441424c 45000000 00000000 END TABLE.......
- 2010 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc64-poly.s b/ld/testsuite/ld-scripts/crc64-poly.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-poly.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-poly.t b/ld/testsuite/ld-scripts/crc64-poly.t
deleted file mode 100644
index fb357caedf9..00000000000
--- a/ld/testsuite/ld-scripts/crc64-poly.t
+++ /dev/null
@@ -1,43 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" POLY(64,0x42F0E1EBA9EA3693,0,0,0,0,0)(ecc_start , ecc_end)
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-reverse-area.d b/ld/testsuite/ld-scripts/crc64-reverse-area.d
deleted file mode 100644
index 4f2a3d12c07..00000000000
--- a/ld/testsuite/ld-scripts/crc64-reverse-area.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-reverse-area.s
-#ld: -T crc64-reverse-area.t
-# error: .*: CRC area starts after its end location.*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-reverse-area.s b/ld/testsuite/ld-scripts/crc64-reverse-area.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-reverse-area.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-reverse-area.t b/ld/testsuite/ld-scripts/crc64-reverse-area.t
deleted file mode 100644
index 27aef4413a0..00000000000
--- a/ld/testsuite/ld-scripts/crc64-reverse-area.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" "CRC64-ECMA" (ecc_end, ecc_start);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-same-section.d b/ld/testsuite/ld-scripts/crc64-same-section.d
deleted file mode 100644
index 779f24affed..00000000000
--- a/ld/testsuite/ld-scripts/crc64-same-section.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-same-section.s
-#ld: -T crc64-same-section.t
-#error: .*: The CRC digest and table should be inside the .*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-same-section.s b/ld/testsuite/ld-scripts/crc64-same-section.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-same-section.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-same-section.t b/ld/testsuite/ld-scripts/crc64-same-section.t
deleted file mode 100644
index 47c96f556a7..00000000000
--- a/ld/testsuite/ld-scripts/crc64-same-section.t
+++ /dev/null
@@ -1,47 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .crc ALIGN (0x200) :
- {
- crc64 = .;
- DIGEST "_CRC64#BE" "CRC64-ECMA" (ecc_start , ecc_end);
- } > rom
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-section.d b/ld/testsuite/ld-scripts/crc64-section.d
deleted file mode 100644
index fe1f83c82a2..00000000000
--- a/ld/testsuite/ld-scripts/crc64-section.d
+++ /dev/null
@@ -1,23 +0,0 @@
-#source: crc64-section.s
-#ld: -T crc64-section.t
-#objdump: -s -j .foo
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
-
-.*: file format .*
-
-Contents of section .foo:
- 1200 434f4445 deadbeef 00000000 00000000 CODE............
- 1210 6c40df5f 0b497347 00000000 00000000 l@._.IsG........
- 1220 6c40df5f 0b497347 00000000 00000000 l@._.IsG........
- 1230 00000000 00000000 deadbeef 434f4445 ............CODE
- 1240 31323334 35363738 3900ffff ffffffff 123456789.......
- 1250 434f4445 00000000 00000000 00000000 CODE............
- 1260 ffffffff ffffffff ffffffff ffffffff .*
-#...
- 17e0 434f4445 deadbeef 00000000 00000000 CODE............
- 17f0 44494745 53542054 41424c45 00000000 DIGEST TABLE....
-#...
- 2000 454e4420 5441424c 45000000 00000000 END TABLE.......
- 2010 00000000 00000000 deadbeef 434f4445 ............CODE
-#pass
diff --git a/ld/testsuite/ld-scripts/crc64-section.s b/ld/testsuite/ld-scripts/crc64-section.s
deleted file mode 100644
index 99ff9f84960..00000000000
--- a/ld/testsuite/ld-scripts/crc64-section.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .foo
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-section.t b/ld/testsuite/ld-scripts/crc64-section.t
deleted file mode 100644
index 7cfcdf7beb4..00000000000
--- a/ld/testsuite/ld-scripts/crc64-section.t
+++ /dev/null
@@ -1,56 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .foo ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" "CRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- ecc_start = .;
- ASCIZ "123456789"
- ecc_end = . - 1;
- . = ALIGN(0x10);
-
- entry = .;
- *(.foo)
- . = ALIGN(0x100);
- BYTE(1);
- INCLUDE "digest_table.inc"
- } > rom
- .text ALIGN (0x200) :
- {
- *(.text)
- QUAD(0x0)
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc64-unknown-digest.d b/ld/testsuite/ld-scripts/crc64-unknown-digest.d
deleted file mode 100644
index 2e41758a03c..00000000000
--- a/ld/testsuite/ld-scripts/crc64-unknown-digest.d
+++ /dev/null
@@ -1,5 +0,0 @@
-#source: crc64-unknown-digest.s
-#ld: -T crc64-unknown-digest.t
-# error: .*: Unknown digest.*
-#target: [is_elf_format] [is_coff_format]
-#skip: tic4x-*-* tic54x-*-*
diff --git a/ld/testsuite/ld-scripts/crc64-unknown-digest.s b/ld/testsuite/ld-scripts/crc64-unknown-digest.s
deleted file mode 100644
index e4ffb15af62..00000000000
--- a/ld/testsuite/ld-scripts/crc64-unknown-digest.s
+++ /dev/null
@@ -1,21 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .byte 0x43
- .byte 0x4F
- .byte 0x44
- .byte 0x45
- .long 0
- .long 0
- .long 0
- .section .data
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xde
- .byte 0xad
- .byte 0xbe
- .byte 0xef
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/crc64-unknown-digest.t b/ld/testsuite/ld-scripts/crc64-unknown-digest.t
deleted file mode 100644
index 9f4c900924c..00000000000
--- a/ld/testsuite/ld-scripts/crc64-unknown-digest.t
+++ /dev/null
@@ -1,44 +0,0 @@
-MEMORY {
- rom : ORIGIN = 0x000000, LENGTH = 0x4000
- ram : ORIGIN = 0x008000, LENGTH = 0x1000
-}
-
-_start = 0x000000;
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
- .text ALIGN (0x200) :
-
- {
- FILL(0xFF)
- header = .;
- INCLUDE "begin_tag.inc"
-
- expected = .;
- BYTE(0x6C);
- BYTE(0x40);
- BYTE(0xDF);
- BYTE(0x5F);
- BYTE(0x0B);
- BYTE(0x49);
- BYTE(0x73);
- BYTE(0x47);
-
- QUAD(0x0);
-
- crc64 = .;
- DIGEST "_CRC64#BE" "TCRC64-ECMA" (ecc_start , ecc_end);
- QUAD(0x0);
-
- INCLUDE "end_tag.inc"
-
- INCLUDE "crc_data.inc"
-
- INCLUDE "digest_table.inc"
- } > rom
-
- .data : AT (0x008000) { *(.data) } >ram /* NO default AT>rom */
- . = ALIGN(0x20);
- .bss : { *(.bss) } >ram /* NO default AT>rom */
- /DISCARD/ : { *(*) }
-}
diff --git a/ld/testsuite/ld-scripts/crc_data.inc b/ld/testsuite/ld-scripts/crc_data.inc
deleted file mode 100644
index 176a4689493..00000000000
--- a/ld/testsuite/ld-scripts/crc_data.inc
+++ /dev/null
@@ -1,9 +0,0 @@
- ecc_start = .;
- ASCIZ "123456789"
- ecc_end = . - 1;
- . = ALIGN(0x10);
-
- entry = .;
- *(.text)
- . = ALIGN(0x100);
- BYTE(1);
diff --git a/ld/testsuite/ld-scripts/digest_table.inc b/ld/testsuite/ld-scripts/digest_table.inc
deleted file mode 100644
index fb40a4fa024..00000000000
--- a/ld/testsuite/ld-scripts/digest_table.inc
+++ /dev/null
@@ -1,6 +0,0 @@
- . = ALIGN(2048) - 32;
- INCLUDE "begin_tag.inc"
- ASCII (16) "DIGEST TABLE"
- DIGEST TABLE "CRCTAB"
- ASCII (16) "END TABLE"
- INCLUDE "end_tag.inc"
diff --git a/ld/testsuite/ld-scripts/digest_table_be.inc b/ld/testsuite/ld-scripts/digest_table_be.inc
deleted file mode 100644
index eec712d9eff..00000000000
--- a/ld/testsuite/ld-scripts/digest_table_be.inc
+++ /dev/null
@@ -1,6 +0,0 @@
- . = ALIGN(2048) - 32;
- INCLUDE "begin_tag.inc"
- ASCII (16) "DIGEST TABLE"
- DIGEST TABLE "CRCTAB.BE"
- ASCII (16) "END TABLE"
- INCLUDE "end_tag.inc"
diff --git a/ld/testsuite/ld-scripts/end_tag.inc b/ld/testsuite/ld-scripts/end_tag.inc
deleted file mode 100644
index 4c80854b062..00000000000
--- a/ld/testsuite/ld-scripts/end_tag.inc
+++ /dev/null
@@ -1,9 +0,0 @@
- QUAD(0);
- BYTE(0xDE);
- BYTE(0xAD);
- BYTE(0xBE);
- BYTE(0xEF);
- BYTE(0x43);
- BYTE(0x4F);
- BYTE(0x44);
- BYTE(0x45);
diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index 64767d87f83..56e12da8e61 100644
--- a/ld/testsuite/ld-scripts/script.exp
+++ b/ld/testsuite/ld-scripts/script.exp
@@ -229,23 +229,6 @@ foreach test_script $test_script_list {
run_dump_test "asciz"
run_dump_test "ascii"
-run_dump_test "crc64-ecma"
-run_dump_test "crc64-iso"
-run_dump_test "crc64-iso_be"
-run_dump_test "crc64-poly"
-run_dump_test "crc32"
-run_dump_test "crc32-poly"
-run_dump_test "crc64-reverse-area"
-run_dump_test "crc64-in-section"
-run_dump_test "crc64-same-section"
-run_dump_test "crc64-multiple-digest"
-run_dump_test "crc64-unknown-digest"
-run_dump_test "crc64-poly-size"
-run_dump_test "crc64-bad-label"
-run_dump_test "crc64-bad-label-2"
-run_dump_test "crc64-bad-endian-size"
-run_dump_test "crc64-bad-endian-contents"
-
run_dump_test "align-with-input"
run_dump_test "pr20302"
run_dump_test "output-section-types"