shell: Add dedicated section for shell instances

Addded dedicated section for shell instances.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2020-04-07 08:08:06 +02:00 committed by Ioannis Glaropoulos
commit 8a63c9c8c8
2 changed files with 8 additions and 1 deletions

View file

@ -147,6 +147,13 @@
__log_backends_end = .;
} GROUP_LINK_IN(ROMABLE_REGION)
SECTION_DATA_PROLOGUE(shell_sections,,)
{
_shell_list_start = .;
KEEP(*(SORT(._shell.static.*)));
_shell_list_end = .;
} GROUP_LINK_IN(ROMABLE_REGION)
SECTION_DATA_PROLOGUE(shell_root_cmds_sections,,)
{
__shell_root_cmds_start = .;