diff --git a/sdk/cmake/init-section.lds b/sdk/cmake/init-section.lds index eeda07bf3ce..a40433ae91b 100644 --- a/sdk/cmake/init-section.lds +++ b/sdk/cmake/init-section.lds @@ -1,4 +1,4 @@ -/* Make sure the INIT section is at the end of the module so we can reclaim the space */ +/* Make sure the INIT & .rsrc sections are at the end of the module so we can reclaim the space */ SECTIONS { INIT BLOCK(__section_alignment__) : @@ -7,5 +7,11 @@ SECTIONS *(INIT) __init_end__ = . ; } + .rsrc BLOCK(__section_alignment__) : + { + __rsrc_start__ = . ; + *(.rsrc) + __rsrc_end__ = . ; + } } INSERT BEFORE .reloc; /* .reloc is always at the end */