SECTIONS
{
.text: unordered()
{
file.obj(.text:func_a)
file.obj(.text:func_b)
file.obj(.text:func_c)
file.obj(.text:func_d)
file.obj(.text:func_e)
file.obj(.text:func_f)
file.obj(.text:func_g)
file.obj(.text:func_h)
*(.text)
} > PMEM
...
}
So that, given this list of --preferred_order options:
The placement of the functions in the .text output section is guided by this preferred function order list. This placement will be reflected in a linker generated map file, as follows: