Hi,
we have a special entry (.image_endtoken ) at the end of the firmware image which is placed by the following linker command file. In the compiler version V18.12.x and lower.cinit is placed before .image_endtoken, but in compiler version V20.2.x it is placed after!
How can we stop this behavior?
Thanks,
André
MEMORY
{
// SRAM (Total 63kB)
SRAM_CACHELOCK_MEM : ORIGIN = 0x402F0400 LENGTH = 0x00008000
// SRAM (31kB)
SRAM_MEM : ORIGIN = 0x402F8400 LENGTH = 0x00007C00
// L3 OCMC0 (64kB)
OCMC0_MEM : ORIGIN = 0x40300000 LENGTH = 0x00010000
// External DDR3 SDRAM (Total 256MB)
DDR_CACHELOCK_MEM : ORIGIN = 0x80000000 LENGTH = 0x00010000 // (64kB: 0xc18d8c)
// DDR3 SDRAM
DDR_MEM : ORIGIN = 0x80010000 LENGTH = 0x0FFF0000
}
SECTIONS
{
.init : { AM335x_CodeStart.obj (.text) } LOAD > 0x80000000
.cinit : LOAD > DDR_MEM
GROUP : LOAD > DDR_MEM
{
.text // Code
.data
.const
.image_endtoken
}
}