aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-bpf/call-1.d4
-rw-r--r--ld/testsuite/ld-bpf/call-2.d2
-rw-r--r--ld/testsuite/ld-bpf/reloc-insn-external-be.d4
-rw-r--r--ld/testsuite/ld-bpf/reloc-insn-external-le.d4
-rw-r--r--ld/testsuite/ld-elf/expr1.t2
-rw-r--r--ld/testsuite/ld-elf/flags1.ld2
-rw-r--r--ld/testsuite/ld-elf/loadaddr.t2
-rw-r--r--ld/testsuite/ld-elf/loadaddr3.t2
-rw-r--r--ld/testsuite/ld-elf/noload-1.t2
-rw-r--r--ld/testsuite/ld-elf/overlay.t2
-rw-r--r--ld/testsuite/ld-elf/pr13839.t2
-rw-r--r--ld/testsuite/ld-elf/pr14052.t2
-rw-r--r--ld/testsuite/ld-elf/pr14156c.t2
-rw-r--r--ld/testsuite/ld-elf/pr19005.t2
-rw-r--r--ld/testsuite/ld-elf/relocatable.t2
-rw-r--r--ld/testsuite/ld-i386/alloc.t2
-rw-r--r--ld/testsuite/ld-i386/ifunc-textrel-1a.d2
-rw-r--r--ld/testsuite/ld-i386/ifunc-textrel-1b.d2
-rw-r--r--ld/testsuite/ld-i386/pr18801a.d2
-rw-r--r--ld/testsuite/ld-i386/pr18801b.d2
-rw-r--r--ld/testsuite/ld-loongarch-elf/local-ifunc-reloc.d2
-rw-r--r--ld/testsuite/ld-pe/image_size.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-1.d1
-rw-r--r--ld/testsuite/ld-scripts/empty-address-1.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-2a.d2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-2a.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-2b.d2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-2b.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-3a.d1
-rw-r--r--ld/testsuite/ld-scripts/empty-address-3a.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-3b.d1
-rw-r--r--ld/testsuite/ld-scripts/empty-address-3b.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-3c.t2
-rw-r--r--ld/testsuite/ld-scripts/empty-address-4.t2
-rw-r--r--ld/testsuite/ld-scripts/phdrs.t2
-rw-r--r--ld/testsuite/ld-scripts/phdrs2.t2
-rw-r--r--ld/testsuite/ld-scripts/phdrs3.t2
-rw-r--r--ld/testsuite/ld-scripts/phdrs3a.t2
-rw-r--r--ld/testsuite/ld-scripts/provide-9.t2
-rw-r--r--ld/testsuite/ld-scripts/sort-file.t2
-rw-r--r--ld/testsuite/ld-scripts/sort.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_b_a.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_b_a_a.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_b_a_n.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_b_n.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_b_n_a.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_b_n_n.t2
-rw-r--r--ld/testsuite/ld-scripts/sort_no.t2
-rw-r--r--ld/testsuite/ld-x86-64/ifunc-textrel-1a.d2
-rw-r--r--ld/testsuite/ld-x86-64/ifunc-textrel-1b.d2
-rw-r--r--ld/testsuite/ld-x86-64/pe-x86-64-5.od2
-rw-r--r--ld/testsuite/ld-x86-64/pe-x86-64-5.rd2
-rw-r--r--ld/testsuite/ld-x86-64/pr18176.t2
-rw-r--r--ld/testsuite/ld-x86-64/pr18801a.d2
-rw-r--r--ld/testsuite/ld-x86-64/pr18801b.d2
55 files changed, 55 insertions, 58 deletions
diff --git a/ld/testsuite/ld-bpf/call-1.d b/ld/testsuite/ld-bpf/call-1.d
index ae45588..aad51d5 100644
--- a/ld/testsuite/ld-bpf/call-1.d
+++ b/ld/testsuite/ld-bpf/call-1.d
@@ -1,7 +1,7 @@
-#as: --EL -mdialect=normal
+#as: --EL
#source: foo.s
#source: bar.s
-#objdump: -dr -M dec
+#objdump: -dr
#ld: -EL
#name: CALL with 64_32 reloc
diff --git a/ld/testsuite/ld-bpf/call-2.d b/ld/testsuite/ld-bpf/call-2.d
index d00faba..3d09095 100644
--- a/ld/testsuite/ld-bpf/call-2.d
+++ b/ld/testsuite/ld-bpf/call-2.d
@@ -1,7 +1,7 @@
#as: --EL
#source: call-2.s
#source: bar.s
-#objdump: -dr -M dec
+#objdump: -dr
#ld: -EL
#name: CALL with disp32 reloc and addend
diff --git a/ld/testsuite/ld-bpf/reloc-insn-external-be.d b/ld/testsuite/ld-bpf/reloc-insn-external-be.d
index b22ebbd..455daa7 100644
--- a/ld/testsuite/ld-bpf/reloc-insn-external-be.d
+++ b/ld/testsuite/ld-bpf/reloc-insn-external-be.d
@@ -1,7 +1,7 @@
-#as: -EB -mdialect=normal
+#as: --EB
#source: reloc-data.s
#source: reloc-insn-external.s
-#objdump: -dr -M hex
+#objdump: -dr
#ld: -Tdata=0x20 -EB
#name: reloc insn external BE
diff --git a/ld/testsuite/ld-bpf/reloc-insn-external-le.d b/ld/testsuite/ld-bpf/reloc-insn-external-le.d
index ba9c305..5106638 100644
--- a/ld/testsuite/ld-bpf/reloc-insn-external-le.d
+++ b/ld/testsuite/ld-bpf/reloc-insn-external-le.d
@@ -1,7 +1,7 @@
-#as: -EL -mdialect=normal
+#as: --EL
#source: reloc-data.s
#source: reloc-insn-external.s
-#objdump: -dr -M hex
+#objdump: -dr
#ld: -Tdata=0x20 -EL
#name: reloc insn external LE
diff --git a/ld/testsuite/ld-elf/expr1.t b/ld/testsuite/ld-elf/expr1.t
index 684cffb..9670e25 100644
--- a/ld/testsuite/ld-elf/expr1.t
+++ b/ld/testsuite/ld-elf/expr1.t
@@ -2,5 +2,5 @@ SECTIONS
{
.bar : AT ((ADDR(.foo) + 4095) & ~(4095)) { *(.bar) }
.foo : { *(.foo) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/flags1.ld b/ld/testsuite/ld-elf/flags1.ld
index 14d17cb..c003ce7 100644
--- a/ld/testsuite/ld-elf/flags1.ld
+++ b/ld/testsuite/ld-elf/flags1.ld
@@ -9,5 +9,5 @@ SECTIONS
{
. += 0x160;
}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/loadaddr.t b/ld/testsuite/ld-elf/loadaddr.t
index e4036f1..91e9ef2 100644
--- a/ld/testsuite/ld-elf/loadaddr.t
+++ b/ld/testsuite/ld-elf/loadaddr.t
@@ -6,5 +6,5 @@ SECTIONS
.foo : { *(.foo) }
. = ALIGN(8192);
.data : AT (ADDR(.data)) { *(.data) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/loadaddr3.t b/ld/testsuite/ld-elf/loadaddr3.t
index c70e363..789f61e 100644
--- a/ld/testsuite/ld-elf/loadaddr3.t
+++ b/ld/testsuite/ld-elf/loadaddr3.t
@@ -12,5 +12,5 @@ SECTIONS
.data : {data_load = LOADADDR (.data);
data_start = ADDR (.data);
*(.data .data.*)} >ram AT>rom
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/noload-1.t b/ld/testsuite/ld-elf/noload-1.t
index 7c5c26d..768cd42 100644
--- a/ld/testsuite/ld-elf/noload-1.t
+++ b/ld/testsuite/ld-elf/noload-1.t
@@ -5,5 +5,5 @@ SECTIONS
{
*(TEST)
}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/overlay.t b/ld/testsuite/ld-elf/overlay.t
index ee37d05..640af96 100644
--- a/ld/testsuite/ld-elf/overlay.t
+++ b/ld/testsuite/ld-elf/overlay.t
@@ -11,7 +11,7 @@ SECTIONS
} = 0
.silly-name3 : { *(.silly-name3) } = 0
.silly-name4 : { *(.silly-name4) } = 0
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
ASSERT(ADDR(.text1)==ADDR(.text2), "overlay error")
ASSERT(ADDR(.silly-name1)==ADDR(.silly-name2), "silly overlay error")
}
diff --git a/ld/testsuite/ld-elf/pr13839.t b/ld/testsuite/ld-elf/pr13839.t
index 5999719..6baa228 100644
--- a/ld/testsuite/ld-elf/pr13839.t
+++ b/ld/testsuite/ld-elf/pr13839.t
@@ -4,6 +4,6 @@ SECTIONS {
*(.text)
}
_end = .;
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
. = ASSERT((_end - _text <= (512 * 1024 * 1024)), "foo");
diff --git a/ld/testsuite/ld-elf/pr14052.t b/ld/testsuite/ld-elf/pr14052.t
index ebc40f1..84fffbd 100644
--- a/ld/testsuite/ld-elf/pr14052.t
+++ b/ld/testsuite/ld-elf/pr14052.t
@@ -8,5 +8,5 @@ SECTIONS {
_data_start = .;
*(.data)
}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/pr14156c.t b/ld/testsuite/ld-elf/pr14156c.t
index adf1f0a..c8be2c5 100644
--- a/ld/testsuite/ld-elf/pr14156c.t
+++ b/ld/testsuite/ld-elf/pr14156c.t
@@ -1,5 +1,5 @@
SECTIONS {
.text : { *(.text) }
.foo : { *(SORT_NONE(.foo)) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/pr19005.t b/ld/testsuite/ld-elf/pr19005.t
index e9170c3..0e89e0b 100644
--- a/ld/testsuite/ld-elf/pr19005.t
+++ b/ld/testsuite/ld-elf/pr19005.t
@@ -2,5 +2,5 @@ SECTIONS
{
.foo : { *(.foo) }
.bar : { *(.bar) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-elf/relocatable.t b/ld/testsuite/ld-elf/relocatable.t
index 0839555..2ec056a 100644
--- a/ld/testsuite/ld-elf/relocatable.t
+++ b/ld/testsuite/ld-elf/relocatable.t
@@ -4,5 +4,5 @@ SECTIONS
.text : { *(.text) }
. = 0x900000;
.data : { *(.data) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-i386/alloc.t b/ld/testsuite/ld-i386/alloc.t
index 1bbb9a6..f7dd17a 100644
--- a/ld/testsuite/ld-i386/alloc.t
+++ b/ld/testsuite/ld-i386/alloc.t
@@ -8,5 +8,5 @@ SECTIONS
.bar : AT(ADDR(.bar) - 0xC0000000) { *(.bar) } :text
.bss : AT(ADDR(.bss) - 0xC0000000) { *(.bss) }
.foo 0 : AT(ADDR(.bss) + SIZEOF(.bss) - 0xC0000000) { *(.foo) } :text
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-i386/ifunc-textrel-1a.d b/ld/testsuite/ld-i386/ifunc-textrel-1a.d
index aad77e7..15f545d 100644
--- a/ld/testsuite/ld-i386/ifunc-textrel-1a.d
+++ b/ld/testsuite/ld-i386/ifunc-textrel-1a.d
@@ -1,4 +1,4 @@
#source: ../ld-x86-64/ifunc-textrel-1.s
#as: --32
-#ld: -m elf_i386 -pie -z notext
+#ld: -m elf_i386 -pie
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
diff --git a/ld/testsuite/ld-i386/ifunc-textrel-1b.d b/ld/testsuite/ld-i386/ifunc-textrel-1b.d
index bf0f2ac..6e4a67c 100644
--- a/ld/testsuite/ld-i386/ifunc-textrel-1b.d
+++ b/ld/testsuite/ld-i386/ifunc-textrel-1b.d
@@ -1,4 +1,4 @@
#source: ../ld-x86-64/ifunc-textrel-1.s
#as: --32
-#ld: -m elf_i386 -shared -z notext
+#ld: -m elf_i386 -shared
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
diff --git a/ld/testsuite/ld-i386/pr18801a.d b/ld/testsuite/ld-i386/pr18801a.d
index b1ef145..73cb5d1 100644
--- a/ld/testsuite/ld-i386/pr18801a.d
+++ b/ld/testsuite/ld-i386/pr18801a.d
@@ -1,4 +1,4 @@
#source: pr18801.s
#as: --32
-#ld: -m elf_i386 -pie -z notext
+#ld: -m elf_i386 -pie
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
diff --git a/ld/testsuite/ld-i386/pr18801b.d b/ld/testsuite/ld-i386/pr18801b.d
index 983346c..0bf7fb7 100644
--- a/ld/testsuite/ld-i386/pr18801b.d
+++ b/ld/testsuite/ld-i386/pr18801b.d
@@ -1,4 +1,4 @@
#source: pr18801.s
#as: --32
-#ld: -m elf_i386 -shared -z notext
+#ld: -m elf_i386 -shared
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
diff --git a/ld/testsuite/ld-loongarch-elf/local-ifunc-reloc.d b/ld/testsuite/ld-loongarch-elf/local-ifunc-reloc.d
index bf73d9f..29f2d3f 100644
--- a/ld/testsuite/ld-loongarch-elf/local-ifunc-reloc.d
+++ b/ld/testsuite/ld-loongarch-elf/local-ifunc-reloc.d
@@ -6,5 +6,5 @@
DYNAMIC RELOCATION RECORDS
OFFSET +TYPE +VALUE
-[[:xdigit:]]+ R_LARCH_64 +test
[[:xdigit:]]+ R_LARCH_IRELATIVE +\*ABS\*\+0x[[:xdigit:]]+
+[[:xdigit:]]+ R_LARCH_64 +test
diff --git a/ld/testsuite/ld-pe/image_size.t b/ld/testsuite/ld-pe/image_size.t
index 93f2f50..f646eca 100644
--- a/ld/testsuite/ld-pe/image_size.t
+++ b/ld/testsuite/ld-pe/image_size.t
@@ -11,5 +11,5 @@ SECTIONS
{
*(.data)
}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-scripts/empty-address-1.d
index 210b70f..dbaf778 100644
--- a/ld/testsuite/ld-scripts/empty-address-1.d
+++ b/ld/testsuite/ld-scripts/empty-address-1.d
@@ -5,6 +5,5 @@
0+0 [AT] _start
#...
0+200 [ADT] __data_end
-#...
0+200 [ADT] __data_start
#pass
diff --git a/ld/testsuite/ld-scripts/empty-address-1.t b/ld/testsuite/ld-scripts/empty-address-1.t
index a579683..a24f25a 100644
--- a/ld/testsuite/ld-scripts/empty-address-1.t
+++ b/ld/testsuite/ld-scripts/empty-address-1.t
@@ -8,5 +8,5 @@ SECTIONS
}
__data_end = .;
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d
index a619ea1..4471a1b 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: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format]
+#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-*
#...
0+0 T _start
#...
diff --git a/ld/testsuite/ld-scripts/empty-address-2a.t b/ld/testsuite/ld-scripts/empty-address-2a.t
index bc53115..0ab29a4 100644
--- a/ld/testsuite/ld-scripts/empty-address-2a.t
+++ b/ld/testsuite/ld-scripts/empty-address-2a.t
@@ -4,5 +4,5 @@ SECTIONS
.data : { *(.data) }
__data_end = .;
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d
index c9b97b8..8dfe888 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: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format]
+#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-*
#...
0+0 T _start
#...
diff --git a/ld/testsuite/ld-scripts/empty-address-2b.t b/ld/testsuite/ld-scripts/empty-address-2b.t
index 788cd65..c6d1e52 100644
--- a/ld/testsuite/ld-scripts/empty-address-2b.t
+++ b/ld/testsuite/ld-scripts/empty-address-2b.t
@@ -8,5 +8,5 @@ SECTIONS
}
__data_end = .;
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-3a.d b/ld/testsuite/ld-scripts/empty-address-3a.d
index fe87ebc..b3135bf 100644
--- a/ld/testsuite/ld-scripts/empty-address-3a.d
+++ b/ld/testsuite/ld-scripts/empty-address-3a.d
@@ -1,7 +1,6 @@
#source: empty-address-3.s
#ld: -T empty-address-3a.t
#nm: -n
-#xfail: [is_xcoff_format]
#...
0+0 T _start
diff --git a/ld/testsuite/ld-scripts/empty-address-3a.t b/ld/testsuite/ld-scripts/empty-address-3a.t
index 42128f8..28767a1 100644
--- a/ld/testsuite/ld-scripts/empty-address-3a.t
+++ b/ld/testsuite/ld-scripts/empty-address-3a.t
@@ -7,5 +7,5 @@ SECTIONS
}
__data_end = .;
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-3b.d b/ld/testsuite/ld-scripts/empty-address-3b.d
index 0d9babe..1e68e29 100644
--- a/ld/testsuite/ld-scripts/empty-address-3b.d
+++ b/ld/testsuite/ld-scripts/empty-address-3b.d
@@ -1,7 +1,6 @@
#source: empty-address-3.s
#ld: -T empty-address-3b.t
#nm: -n
-#xfail: [is_xcoff_format]
#...
0+0 T _start
diff --git a/ld/testsuite/ld-scripts/empty-address-3b.t b/ld/testsuite/ld-scripts/empty-address-3b.t
index 2b9e27d..6da2421 100644
--- a/ld/testsuite/ld-scripts/empty-address-3b.t
+++ b/ld/testsuite/ld-scripts/empty-address-3b.t
@@ -8,5 +8,5 @@ SECTIONS
}
__data_end = .;
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-3c.t b/ld/testsuite/ld-scripts/empty-address-3c.t
index 13fe34e..0829c58 100644
--- a/ld/testsuite/ld-scripts/empty-address-3c.t
+++ b/ld/testsuite/ld-scripts/empty-address-3c.t
@@ -8,5 +8,5 @@ SECTIONS
}
__data_end = .;
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/empty-address-4.t b/ld/testsuite/ld-scripts/empty-address-4.t
index bb0c2f6..f25bbfe 100644
--- a/ld/testsuite/ld-scripts/empty-address-4.t
+++ b/ld/testsuite/ld-scripts/empty-address-4.t
@@ -7,5 +7,5 @@ SECTIONS
ASSERT (. < 0x400, oops);
}
.bss : { *(.bss) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/phdrs.t b/ld/testsuite/ld-scripts/phdrs.t
index 1267322..283e30c 100644
--- a/ld/testsuite/ld-scripts/phdrs.t
+++ b/ld/testsuite/ld-scripts/phdrs.t
@@ -12,5 +12,5 @@ SECTIONS
. = 0x800000 + SIZEOF_HEADERS;
.text : { *(.text) } :text
.data : { *(.data) } :data
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/phdrs2.t b/ld/testsuite/ld-scripts/phdrs2.t
index d5a4c2a..bccbcec 100644
--- a/ld/testsuite/ld-scripts/phdrs2.t
+++ b/ld/testsuite/ld-scripts/phdrs2.t
@@ -19,5 +19,5 @@ SECTIONS
LONG(EMPTY_START) ;
} : Bar
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/phdrs3.t b/ld/testsuite/ld-scripts/phdrs3.t
index d86e206..4bd4e85 100644
--- a/ld/testsuite/ld-scripts/phdrs3.t
+++ b/ld/testsuite/ld-scripts/phdrs3.t
@@ -12,5 +12,5 @@ SECTIONS
. = 0x800000 + SIZEOF_HEADERS;
.text : { *(.text) } :text
.data : { *(.data) } :data
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/phdrs3a.t b/ld/testsuite/ld-scripts/phdrs3a.t
index 4853b7b..c07ff34 100644
--- a/ld/testsuite/ld-scripts/phdrs3a.t
+++ b/ld/testsuite/ld-scripts/phdrs3a.t
@@ -11,5 +11,5 @@ SECTIONS
. = 0x800000 + SIZEOF_HEADERS;
.text : { *(.text) } :text
.data : { *(.data) } :data
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/provide-9.t b/ld/testsuite/ld-scripts/provide-9.t
index b26051a..00d906a 100644
--- a/ld/testsuite/ld-scripts/provide-9.t
+++ b/ld/testsuite/ld-scripts/provide-9.t
@@ -20,6 +20,6 @@ SECTIONS
*(.bss .bss.*)
} >FOO
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort-file.t b/ld/testsuite/ld-scripts/sort-file.t
index f46f574..559a000 100644
--- a/ld/testsuite/ld-scripts/sort-file.t
+++ b/ld/testsuite/ld-scripts/sort-file.t
@@ -2,5 +2,5 @@ SECTIONS
{
.text : { SORT_BY_NAME(*)(.text*) }
.data : { *(.data*) }
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort.t b/ld/testsuite/ld-scripts/sort.t
index a7bb88f..c53481f 100644
--- a/ld/testsuite/ld-scripts/sort.t
+++ b/ld/testsuite/ld-scripts/sort.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(.text .text.*)}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_b_a.t b/ld/testsuite/ld-scripts/sort_b_a.t
index c53f6c2..cbfd3c3 100644
--- a/ld/testsuite/ld-scripts/sort_b_a.t
+++ b/ld/testsuite/ld-scripts/sort_b_a.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(SORT_BY_ALIGNMENT(.text*))}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_b_a_a.t b/ld/testsuite/ld-scripts/sort_b_a_a.t
index df0b190..359cdff 100644
--- a/ld/testsuite/ld-scripts/sort_b_a_a.t
+++ b/ld/testsuite/ld-scripts/sort_b_a_a.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(SORT_BY_ALIGNMENT(SORT_BY_ALIGNMENT(.text*)))}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_b_a_n.t b/ld/testsuite/ld-scripts/sort_b_a_n.t
index f5661bb..04c3917 100644
--- a/ld/testsuite/ld-scripts/sort_b_a_n.t
+++ b/ld/testsuite/ld-scripts/sort_b_a_n.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.text*)))}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_b_n.t b/ld/testsuite/ld-scripts/sort_b_n.t
index 344d7f3..26c2b6e 100644
--- a/ld/testsuite/ld-scripts/sort_b_n.t
+++ b/ld/testsuite/ld-scripts/sort_b_n.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(SORT_BY_NAME(.text*))}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_b_n_a.t b/ld/testsuite/ld-scripts/sort_b_n_a.t
index 532ba52..49cbdd3 100644
--- a/ld/testsuite/ld-scripts/sort_b_n_a.t
+++ b/ld/testsuite/ld-scripts/sort_b_n_a.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(SORT_BY_NAME(SORT_BY_ALIGNMENT(.text*)))}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_b_n_n.t b/ld/testsuite/ld-scripts/sort_b_n_n.t
index b8b0914..b4eabfe 100644
--- a/ld/testsuite/ld-scripts/sort_b_n_n.t
+++ b/ld/testsuite/ld-scripts/sort_b_n_n.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(SORT_BY_NAME(SORT_BY_NAME(.text*)))}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-scripts/sort_no.t b/ld/testsuite/ld-scripts/sort_no.t
index 7ddc352..d797c79 100644
--- a/ld/testsuite/ld-scripts/sort_no.t
+++ b/ld/testsuite/ld-scripts/sort_no.t
@@ -1,5 +1,5 @@
SECTIONS
{
.text : {*(.text*)}
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-x86-64/ifunc-textrel-1a.d b/ld/testsuite/ld-x86-64/ifunc-textrel-1a.d
index 6673660..64a1e70 100644
--- a/ld/testsuite/ld-x86-64/ifunc-textrel-1a.d
+++ b/ld/testsuite/ld-x86-64/ifunc-textrel-1a.d
@@ -1,4 +1,4 @@
#source: ifunc-textrel-1.s
#as: --64 -defsym __x86_64__=1
-#ld: -m elf_x86_64 -pie -z notext
+#ld: -m elf_x86_64 -pie
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
diff --git a/ld/testsuite/ld-x86-64/ifunc-textrel-1b.d b/ld/testsuite/ld-x86-64/ifunc-textrel-1b.d
index f7b8e02..aeb31fd 100644
--- a/ld/testsuite/ld-x86-64/ifunc-textrel-1b.d
+++ b/ld/testsuite/ld-x86-64/ifunc-textrel-1b.d
@@ -1,4 +1,4 @@
#source: ifunc-textrel-1.s
#as: --64 -defsym __x86_64__=1
-#ld: -m elf_x86_64 -shared -z notext
+#ld: -m elf_x86_64 -shared
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
diff --git a/ld/testsuite/ld-x86-64/pe-x86-64-5.od b/ld/testsuite/ld-x86-64/pe-x86-64-5.od
index 2a1b69b..ffd6622 100644
--- a/ld/testsuite/ld-x86-64/pe-x86-64-5.od
+++ b/ld/testsuite/ld-x86-64/pe-x86-64-5.od
@@ -6,7 +6,7 @@ SYMBOL TABLE:
0+402010 g .data 0000000000000000 initdummy
0+400000 g .text\$mn 0000000000000000 __executable_start
0+401000 g .text\$mn 0000000000000000 begin
-0+402014 g .bss 0000000000000000 __bss_start
+0+402012 g .bss 0000000000000000 __bss_start
0+402000 g .data 0000000000000000 Struct
0+402011 g .data 0000000000000000 initializedVar
0+402012 g .data 0000000000000000 _edata
diff --git a/ld/testsuite/ld-x86-64/pe-x86-64-5.rd b/ld/testsuite/ld-x86-64/pe-x86-64-5.rd
index 060233e..2370528 100644
--- a/ld/testsuite/ld-x86-64/pe-x86-64-5.rd
+++ b/ld/testsuite/ld-x86-64/pe-x86-64-5.rd
@@ -6,7 +6,7 @@ Symbol table '.symtab' contains 11 entries:
+[a-f0-9]+: 0000000000402010 0 NOTYPE GLOBAL DEFAULT 2 initdummy
+[a-f0-9]+: 0000000000400000 0 NOTYPE GLOBAL DEFAULT 1 __executable_start
+[a-f0-9]+: 0000000000401000 0 NOTYPE GLOBAL DEFAULT 1 begin
- +[a-f0-9]+: 0000000000402014 0 NOTYPE GLOBAL DEFAULT 3 __bss_start
+ +[a-f0-9]+: 0000000000402012 0 NOTYPE GLOBAL DEFAULT 3 __bss_start
+[a-f0-9]+: 0000000000402000 0 NOTYPE GLOBAL DEFAULT 2 Struct
+[a-f0-9]+: 0000000000402011 0 NOTYPE GLOBAL DEFAULT 2 initializedVar
+[a-f0-9]+: 0000000000402012 0 NOTYPE GLOBAL DEFAULT 2 _edata
diff --git a/ld/testsuite/ld-x86-64/pr18176.t b/ld/testsuite/ld-x86-64/pr18176.t
index 0004a5e..480c0cd 100644
--- a/ld/testsuite/ld-x86-64/pr18176.t
+++ b/ld/testsuite/ld-x86-64/pr18176.t
@@ -35,5 +35,5 @@ SECTIONS
. = ALIGN(64 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
- /DISCARD/ : { *(*) }
+ /DISCARD/ : { *(.*) }
}
diff --git a/ld/testsuite/ld-x86-64/pr18801a.d b/ld/testsuite/ld-x86-64/pr18801a.d
index 61f9d99..2b4159d 100644
--- a/ld/testsuite/ld-x86-64/pr18801a.d
+++ b/ld/testsuite/ld-x86-64/pr18801a.d
@@ -1,4 +1,4 @@
#source: pr18801.s
#as: --64
-#ld: -melf_x86_64 -pie -z notext
+#ld: -melf_x86_64 -pie
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIE
diff --git a/ld/testsuite/ld-x86-64/pr18801b.d b/ld/testsuite/ld-x86-64/pr18801b.d
index 967a339..34dab1a 100644
--- a/ld/testsuite/ld-x86-64/pr18801b.d
+++ b/ld/testsuite/ld-x86-64/pr18801b.d
@@ -1,4 +1,4 @@
#source: pr18801.s
#as: --64
-#ld: -melf_x86_64 -shared -z notext
+#ld: -melf_x86_64 -shared
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC