Hello All,
I'd like to initialize some global vars that I have declared in a specific memory section.
But I did not find how to declare to the linker that my memory sections has to be initialize. (like .cinit:)
my linker.cmd file:
SECTIONS {
.onchip_code: {} > DDR3_DSP
.onchip_data: {} > DDR3_DSP
.onchip_data_L3: {} > OCMC
.offchip_code: {} > DDR3_DSP
.offchip_data: {} > SHMEM_DATA
.offchip_config: {} > SHMEM_CFG
.my_sect_ddr: {} > DDR3_DSP
.my_sect_iram: {} > DDR3_DSP
.plt: {} > DDR3_DSP
}
I would like that global variables declared into SHMEM_DATA section to be autoinitialized.
Any help will be welcomed.