How to use wildcards in a linker script file?
In a linker script file, you can use wildcards like "*" and "?" to match any sequence, or any single character, in the name of an input section.
Example 1
.code :
{
*(.text*)
} > CODE
Here, the wildcard "*" is used to match any number of characters before or after ".text".
Example 2
.code :
{
*Cpu?_Main.*(.text*)
} > CODE
Here, the wildcard "?" is used to match any single character after "foo.".