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, 58 insertions, 55 deletions
diff --git a/ld/testsuite/ld-bpf/call-1.d b/ld/testsuite/ld-bpf/call-1.d
index aad51d5..ae45588 100644
--- a/ld/testsuite/ld-bpf/call-1.d
+++ b/ld/testsuite/ld-bpf/call-1.d
@@ -1,7 +1,7 @@
-#as: --EL
+#as: --EL -mdialect=normal
#source: foo.s
#source: bar.s
-#objdump: -dr
+#objdump: -dr -M dec
#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 3d09095..d00faba 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
+#objdump: -dr -M dec
#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 455daa7..b22ebbd 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
+#as: -EB -mdialect=normal
#source: reloc-data.s
#source: reloc-insn-external.s
-#objdump: -dr
+#objdump: -dr -M hex
#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 5106638..ba9c305 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
+#as: -EL -mdialect=normal
#source: reloc-data.s
#source: reloc-insn-external.s
-#objdump: -dr
+#objdump: -dr -M hex
#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 9670e25..684cffb 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 c003ce7..14d17cb 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 91e9ef2..e4036f1 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 789f61e..c70e363 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 768cd42..7c5c26d 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 640af96..ee37d05 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 6baa228..5999719 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 84fffbd..ebc40f1 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 c8be2c5..adf1f0a 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 0e89e0b..e9170c3 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 2ec056a..0839555 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 f7dd17a..1bbb9a6 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 15f545d..aad77e7 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
+#ld: -m elf_i386 -pie -z notext
#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 6e4a67c..bf0f2ac 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
+#ld: -m elf_i386 -shared -z notext
#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 73cb5d1..b1ef145 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
+#ld: -m elf_i386 -pie -z notext
#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 0bf7fb7..983346c 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
+#ld: -m elf_i386 -shared -z notext
#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 29f2d3f..bf73d9f 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_IRELATIVE +\*ABS\*\+0x[[:xdigit:]]+
[[:xdigit:]]+ R_LARCH_64 +test
+[[:xdigit:]]+ R_LARCH_IRELATIVE +\*ABS\*\+0x[[:xdigit:]]+
diff --git a/ld/testsuite/ld-pe/image_size.t b/ld/testsuite/ld-pe/image_size.t
index f646eca..93f2f50 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 dbaf778..210b70f 100644
--- a/ld/testsuite/ld-scripts/empty-address-1.d
+++ b/ld/testsuite/ld-scripts/empty-address-1.d
@@ -5,5 +5,6 @@
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 a24f25a..a579683 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 4471a1b..a619ea1 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-*-*
+#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format]
#...
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 0ab29a4..bc53115 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 8dfe888..c9b97b8 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-*-*
+#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* [is_xcoff_format]
#...
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 c6d1e52..788cd65 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 b3135bf..fe87ebc 100644
--- a/ld/testsuite/ld-scripts/empty-address-3a.d
+++ b/ld/testsuite/ld-scripts/empty-address-3a.d
@@ -1,6 +1,7 @@
#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 28767a1..42128f8 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 1e68e29..0d9babe 100644
--- a/ld/testsuite/ld-scripts/empty-address-3b.d
+++ b/ld/testsuite/ld-scripts/empty-address-3b.d
@@ -1,6 +1,7 @@
#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 6da2421..2b9e27d 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 0829c58..13fe34e 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 f25bbfe..bb0c2f6 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 283e30c..1267322 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 bccbcec..d5a4c2a 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 4bd4e85..d86e206 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 c07ff34..4853b7b 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 00d906a..b26051a 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 559a000..f46f574 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 c53481f..a7bb88f 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 cbfd3c3..c53f6c2 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 359cdff..df0b190 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 04c3917..f5661bb 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 26c2b6e..344d7f3 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 49cbdd3..532ba52 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 b4eabfe..b8b0914 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 d797c79..7ddc352 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 64a1e70..6673660 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
+#ld: -m elf_x86_64 -pie -z notext
#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 aeb31fd..f7b8e02 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
+#ld: -m elf_x86_64 -shared -z notext
#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 ffd6622..2a1b69b 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+402012 g .bss 0000000000000000 __bss_start
+0+402014 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 2370528..060233e 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]+: 0000000000402012 0 NOTYPE GLOBAL DEFAULT 3 __bss_start
+ +[a-f0-9]+: 0000000000402014 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 480c0cd..0004a5e 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 2b4159d..61f9d99 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
+#ld: -melf_x86_64 -pie -z notext
#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 34dab1a..967a339 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
+#ld: -melf_x86_64 -shared -z notext
#warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC