aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-03-09 11:53:52 +1030
committerAlan Modra <amodra@gmail.com>2023-03-10 21:22:16 +1030
commita4d5aec71e097837ee314eca612f71a3d85b6b3f (patch)
treed8a312e80b6695a55f015b38c6f842b3c4d6fa6a /ld/testsuite
parent75bd292bea53d6ce8de66f30d67c2edb4a558110 (diff)
downloadgdb-a4d5aec71e097837ee314eca612f71a3d85b6b3f.zip
gdb-a4d5aec71e097837ee314eca612f71a3d85b6b3f.tar.gz
gdb-a4d5aec71e097837ee314eca612f71a3d85b6b3f.tar.bz2
Revert ld ASCII support
Revert "Prevent the ASCII linker script directive from generating huge amounts of padding if the size expression is not a constant." This reverts commit adbe951fc95943016325af08d677f18e8c177ac1. Revert "ld test asciz and ascii fails" This reverts the ascii.d part of commit 5f497256bee624f0fa470949aa41534093bc5b25. Revert "Add support for the ASCII directive inside linker scripts." This mostly reverts commit 9fe129a4105bb59398f73ce96938a94f19265b79 leaving the asciz.d and asciz.t changes in place.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-scripts/ascii.d25
-rw-r--r--ld/testsuite/ld-scripts/ascii.s11
-rw-r--r--ld/testsuite/ld-scripts/ascii.t38
-rw-r--r--ld/testsuite/ld-scripts/script.exp1
4 files changed, 0 insertions, 75 deletions
diff --git a/ld/testsuite/ld-scripts/ascii.d b/ld/testsuite/ld-scripts/ascii.d
deleted file mode 100644
index ff3bd32..0000000
--- a/ld/testsuite/ld-scripts/ascii.d
+++ /dev/null
@@ -1,25 +0,0 @@
-#source: ascii.s
-#ld: -T ascii.t
-#objdump: -s -j .header
-#target: [is_elf_format] [is_coff_format]
-#notarget: tic4x-*-* tic54x-*-*
-
-.*: file format .*
-
-Contents of section .header:
- .... 70726f67 72616d20 6e616d65 00000000 program name....
- .... 656d7074 79000000 00000000 00000000 empty...........
- .... 00000000 00000000 00000000 00000000 ................
- .... 00000000 00000000 00000000 00000000 ................
- .... 00000000 00000000 00000000 00000000 ................
- .... 636f6d6d 656e7420 310a0000 00000000 comment 1.......
- .... 00000000 00000000 00000000 00000000 ................
- .... 636f6d6d 656e7420 320a0000 00000000 comment 2.......
- .... 00000000 00000000 00000000 00000000 ................
- .... 636f6d6d 656e7420 330a0000 00000000 comment 3.......
- .... 00000000 00000000 00000000 00000000 ................
- .... 636f6d6d 656e7420 340a0000 00000000 comment 4.......
- .... 00000000 00000000 49206d65 616e7420 ........I meant
- .... 746f2073 61793a20 54686973 20697320 to say: This is
- .... 77617920 746f6f20 6c6f6e67 00000000 way too long....
-#pass
diff --git a/ld/testsuite/ld-scripts/ascii.s b/ld/testsuite/ld-scripts/ascii.s
deleted file mode 100644
index a1b6148..0000000
--- a/ld/testsuite/ld-scripts/ascii.s
+++ /dev/null
@@ -1,11 +0,0 @@
- .extern ecc_start
- .section .text
-main:
- .long 0x45444F43
- .long 0x12345678
-
- .section .data
- .long 0x9abcdef0
-
- .section .bss
- .long 0
diff --git a/ld/testsuite/ld-scripts/ascii.t b/ld/testsuite/ld-scripts/ascii.t
deleted file mode 100644
index 6f682fa..0000000
--- a/ld/testsuite/ld-scripts/ascii.t
+++ /dev/null
@@ -1,38 +0,0 @@
-_start = 0x000000;
-
-SECTIONS
-{
- . = 0x1000 + SIZEOF_HEADERS;
-
- .header ALIGN (0x100) (READONLY) :
- {
- ASCII (16) "program name"
- ASCII (64) "empty"
- ASCII (4 * 8) "comment 1\n"
- ASCII (32) "comment 2\n"
- ASCII (32) "comment 3\n"
- ASCII (24) "comment 4\n"
- ASCII (64) "I meant to say: This is way too long"
- }
-
- .text ALIGN (0x100) :
- {
- entry = .;
- *(.text)
- }
-
- .data : AT (0x400000)
- {
- *(.data)
- }
-
- . = ALIGN(0x20);
-
- .bss :
- {
- *(.bss)
- }
-
- /DISCARD/ : { *(*) }
-}
-
diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp
index 56e12da..a574dde 100644
--- a/ld/testsuite/ld-scripts/script.exp
+++ b/ld/testsuite/ld-scripts/script.exp
@@ -228,7 +228,6 @@ foreach test_script $test_script_list {
}
run_dump_test "asciz"
-run_dump_test "ascii"
run_dump_test "align-with-input"
run_dump_test "pr20302"
run_dump_test "output-section-types"