This sample provides an example for using the code relocation feature. This example will place text,data,bss from 3 files to various parts in the SRAM. For this a custom linker file is used which is derived from include/arch/arm/cortex_m/scripts/linker.ld. Signed-off-by: Varun Sharma <varun.sharma@intel.com> Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
5 lines
147 B
Plaintext
5 lines
147 B
Plaintext
SECTION_DATA_PROLOGUE(_CUSTOM_SECTION_NAME2,,)
|
|
{
|
|
KEEP(*(".custom_section.*"));
|
|
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|