/DISCARD/ in ld testsuite
authorAlan Modra <amodra@gmail.com>
Thu, 27 Jul 2023 08:33:49 +0000 (18:03 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 27 Jul 2023 14:08:14 +0000 (23:38 +0930)
commit2902e6682d63183d373f385d4efaf8597fd22544
tree040aceac580c1c1f50ed736e6aad0dadbe401158
parentf1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d
/DISCARD/ in ld testsuite

The canonical form to discard all sections not mentioned earlier in
the script is
  /DISCARD/ : { *(*) }
not
  /DISCARD/ : { *(.*) }
".*" happens to work with the usual section names starting with a dot,
but let's not promote something not quite right.
35 files changed:
ld/testsuite/ld-elf/expr1.t
ld/testsuite/ld-elf/flags1.ld
ld/testsuite/ld-elf/loadaddr.t
ld/testsuite/ld-elf/loadaddr3.t
ld/testsuite/ld-elf/noload-1.t
ld/testsuite/ld-elf/overlay.t
ld/testsuite/ld-elf/pr13839.t
ld/testsuite/ld-elf/pr14052.t
ld/testsuite/ld-elf/pr14156c.t
ld/testsuite/ld-elf/pr19005.t
ld/testsuite/ld-elf/relocatable.t
ld/testsuite/ld-i386/alloc.t
ld/testsuite/ld-pe/image_size.t
ld/testsuite/ld-scripts/empty-address-1.t
ld/testsuite/ld-scripts/empty-address-2a.t
ld/testsuite/ld-scripts/empty-address-2b.t
ld/testsuite/ld-scripts/empty-address-3a.t
ld/testsuite/ld-scripts/empty-address-3b.t
ld/testsuite/ld-scripts/empty-address-3c.t
ld/testsuite/ld-scripts/empty-address-4.t
ld/testsuite/ld-scripts/phdrs.t
ld/testsuite/ld-scripts/phdrs2.t
ld/testsuite/ld-scripts/phdrs3.t
ld/testsuite/ld-scripts/phdrs3a.t
ld/testsuite/ld-scripts/provide-9.t
ld/testsuite/ld-scripts/sort-file.t
ld/testsuite/ld-scripts/sort.t
ld/testsuite/ld-scripts/sort_b_a.t
ld/testsuite/ld-scripts/sort_b_a_a.t
ld/testsuite/ld-scripts/sort_b_a_n.t
ld/testsuite/ld-scripts/sort_b_n.t
ld/testsuite/ld-scripts/sort_b_n_a.t
ld/testsuite/ld-scripts/sort_b_n_n.t
ld/testsuite/ld-scripts/sort_no.t
ld/testsuite/ld-x86-64/pr18176.t