Tool/software: TI C/C++ Compiler
1. Is it possible to include boot.c and autoinit.c in a project and build, but also include the TI version of RTS lib?
I'd like to modify this code to exclude regions; e.g., I want to control the constructor of images that are loaded as "tertiary" boot images. I have, say, 4 images; A bootloader, a core image which both load at the same time. Based upon some input, I load another image's data into memory. The core and this "other image" are part of the same out file, but are split into different binaries by modifying the linker command file to have special groups that go into fixed memory locations
/*------------------------------------------------------------------------auto_init_elf */
if (__TI_INITARRAY_Base != __TI_INITARRAY_Limit)
{
int i = 0;
while (&(__TI_INITARRAY_Base[i]) != __TI_INITARRAY_Limit)
//pseudo code
if (__TI_INITARRAY_Base[i] >=0xEB00_0000 )
__TI_INITARRAY_Base[i++]();
else don't call a constructor that isn't loaded yet
}
2. If answer to 1 is yes, then I am having trouble getting rid of three linker errors; _c_int00, _stack, and one other.
Reference to rts*.lib is in the linker file paths
Changed linker order to boot.obj, autoinit.obj and then rts*.lib as last lib.
Any help is appreciated,
Thanks,
Will
Code Composer 5.x,
CGT 7.3.23
64x+ processor
Exceptions enabled,
Big Endian