aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/expr1.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-elf/expr1.t
parentf1036ada3bca6f88340a0a1fbd8b103a3e0cdc2d (diff)
downloadbinutils-2902e6682d63183d373f385d4efaf8597fd22544.zip
binutils-2902e6682d63183d373f385d4efaf8597fd22544.tar.gz
binutils-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-elf/expr1.t')
-rw-r--r--ld/testsuite/ld-elf/expr1.t2
1 files changed, 1 insertions, 1 deletions
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/ : { *(*) }
}