aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/sort_b_a_n.t
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-27 18:03:49 +0930
committerAlan Modra <amodra@gmail.com>2023-07-27 23:38:14 +0930
commit2902e6682d63183d373f385d4efaf8597fd22544 (patch)
tree040aceac580c1c1f50ed736e6aad0dadbe401158 /ld/testsuite/ld-scripts/sort_b_a_n.t
parentf1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d (diff)
downloadgdb-2902e6682d63183d373f385d4efaf8597fd22544.zip
gdb-2902e6682d63183d373f385d4efaf8597fd22544.tar.gz
gdb-2902e6682d63183d373f385d4efaf8597fd22544.tar.bz2
/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.
Diffstat (limited to 'ld/testsuite/ld-scripts/sort_b_a_n.t')
-rw-r--r--ld/testsuite/ld-scripts/sort_b_a_n.t2
1 files changed, 1 insertions, 1 deletions
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/ : { *(*) }
}