Tool/software: TI C/C++ Compiler
I have a very occasional crash in my TI-RTOS system and I can see a rogue memset() call involved. The call itself is made by third party code and while I'm trying to get the sources, for the moment I want to protect against this. I have added code to memset to identify "out of bounds" writes. The .text and .const sections are out of bounds. Today I am looking at the map file produced by the TMS320C6x Linker PC v8.1.0 and extracting these addresses by hand, then recompiling. I could automate the recompile process using a script, but I'd first rather ask:
Can you suggest a way for the compiler and linker to fill in these addresses themselves? Eventually I need to fill in a variable with the start and size or end of the .text and .const sections.