forked from Imagelibrary/binutils-gdb
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.
7 lines
98 B
Raku
7 lines
98 B
Raku
SECTIONS
|
|
{
|
|
.text : { SORT_BY_NAME(*)(.text*) }
|
|
.data : { *(.data*) }
|
|
/DISCARD/ : { *(*) }
|
|
}
|