I am having a problem with a library in my DSP/BIOS application calling "calloc". When I get to this step the program crashes. I remembered reading the information below about using the DSP/BIOS version of calloc by -undefining calloc in the linker options. I have tried "--undefine _calloc", but the linker appears to be linking back to the rtsl version of calloc. At least that's what I see in my .map file.
Can someone provide some guidance with this issue?
Thx,
MikeH
//It is recommended that you use the DSP/BIOS library version of malloc,
//free, memalign, calloc and realloc within DSP/BIOS applications. When
//you are not referencing these functions directly in your application but call
//another run-time support function which references one or more of them,
//add '-u _symbol', (for example, -u _malloc) to your linker options. The -u
//linker option introduces a symbol, such as malloc, as an unresolved symbol
//into the linker's symbol table. This causes the linker to resolve the symbol
//from the DSP/BIOS library rather than the run-time support library. If in
//doubt, you can examine your map file for information on the library sources
//of your application.