This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/EVMK2H: using objcopy with c++ and stdc++ lib

Part Number: EVMK2H


Tool/software: Code Composer Studio

I have a project in which i needed to make some mods to the EVMK2H SBL program to perform some validity checks on the executable file that it will load. 

I was able to successfully make the mods and use objcopy to strip the file and flash it to SPI Nor memory.

Subsequent parts of the modifications required involved utilizing a c++ class. that i was able to successfully compile and link into the project. Including the C++ code required the addition of the stdc++ library file to the library list.

After running objcopy I found that the resultant bin file grew to nearly 2gb! I then added a -S directive to the objcopy command and it did bring the size down to a more reasonable size. But I noticed that there are about 0x10000 bytes present in the resulting file of mostly zeros that don't correspond to anything in the linker map file. There also seems to be a large amount of data after the end of the program that also doesn't appear to correlate to anything that I could find in the map file.

Has anyone had experience with this issue and how to properly configure objcopy to strip an app that utilizes c++ and the stdc++ lib ?

 Thanks!