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.
Hello C2000 forum,
The TMS320C28x Optimizing C/C++ Compiler v22.6.0.LTS documentation mentions on page 27 that there is an option called --unused_section_elimination available under the Miscellaneous settings. However, I am unable to find this option. When I manually add it to the build flags, I receive a warning stating 'Unrecognized flags entered: --unused_section_elimination=off'.
Regards,
Paul
It is only valid when you build your project for the newer EABI. This is configured when a new project is started. Here is a screenshot.
Or, it is possible to import a project that already has this configuration.
Thanks and regards,
-George
Thank you George,
based on the screenshot I provided, the project is currently configured for EABI. However, I am still unable to locate that option under the Miscellaneous settings (See screenshot from original post). Could I be looking in the wrong place? Additionally, when I create a new project, the option seems to be missing too. Interestingly, I noticed that the linker is using the default value and omitting unused sections, which is different from the behavior observed in COFF.
based on the screenshot I provided, the project is currently configured for EABI.
When I posted my reply, your screenshots were not visible for some reason. I see it now.
Could I be looking in the wrong place?
No, you are doing everything correctly. The support for --unused_section_elimination is incomplete. I filed EXT_EP-11226 to have that addressed. You are welcome to follow the entry with that link. Feel free to use this option. When you see ...
Unrecognized flags entered: --unused_section_elimination=off
... just ignore it.
Thanks and regards,
-George