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
143 B
Plaintext
5 lines
143 B
Plaintext
CONFIG_CODE_DATA_RELOCATION=y
|
|
CONFIG_HAVE_CUSTOM_LINKER_SCRIPT=y
|
|
CONFIG_CUSTOM_LINKER_SCRIPT="linker_arm_sram2.ld"
|
|
CONFIG_CUSTOM_SECTIONS_LD=y
|