aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/phdrs3a.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/phdrs3a.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/phdrs3a.t')
-rw-r--r--ld/testsuite/ld-scripts/phdrs3a.t2
1 files changed, 1 insertions, 1 deletions
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/ : { *(*) }
}