/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.
This commit is contained in:
Alan Modra
2023-07-27 18:03:49 +09:30
parent f1036ada3b
commit 2902e6682d
35 changed files with 35 additions and 35 deletions

View File

@@ -7,5 +7,5 @@ SECTIONS
}
__data_end = .;
.bss : { *(.bss) }
/DISCARD/ : { *(.*) }
/DISCARD/ : { *(*) }
}