SORT_BY_ALIGNMENT alternative in ARM Compiler

Hi,

I need to sort address and size aligned symbols in the memory section by descending size using ARM Compiler scatter file.
In GNU toolchain this is easily achieved by using SORT_BY_ALIGNMENT keyword in the linker script.

In ARM compiler scatter file the memory section looks as below:

SRAM_SORTED +0 ALIGN 0x1000 UNINIT
{
*(.bss.*sorted_*)
}

In armlink user guide there are options like --any_sort_order and SORTTYPE, which do not produce descending size sorting for the section though.

Please, suggest what should be the configuration for the linker to produce the needed result?

Parents Reply Children
No data