| |||
| Home > Linker command-line options > --any_sort_order=order | |||
Controls the sort order of input sections that are placed
using the .ANY module selector.
--any_sort_order=order
where is
one of the following:order
descending_sizeSort input sections in descending size order.
cmdlineSort input sections by command-line index.
By default, sections that have the same properties are resolved
using the creation index. You can use the --tiebreaker command-line
option to resolve sections by the order they appear on the linker
command-line.
Use this option with the --scatter option.
The sorting governs the order that sections are processed
during .ANY assignment. Normal scatter-loading
rules, for example R0 before RW,
are obeyed after the sections are assigned to regions.
Using the Linker:
Using the Linker: