From 2902e6682d63183d373f385d4efaf8597fd22544 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 27 Jul 2023 18:03:49 +0930 Subject: /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. --- ld/testsuite/ld-pe/image_size.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/testsuite/ld-pe/image_size.t') 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/ : { *(*) } } -- cgit v1.1