mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
2902e6682d
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.
6 lines
91 B
Raku
6 lines
91 B
Raku
SECTIONS {
|
|
.text : { *(.text) }
|
|
.foo : { *(SORT_NONE(.foo)) }
|
|
/DISCARD/ : { *(*) }
|
|
}
|