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.

TIARM5 .cinit section

Hello,

Why does the TiARm5 compiler create a .cinit section
even it is empty. Is there an option to suppress this?

Background:
------------------------
While building my project, i have not allocated .cinit section
in the linker command file since this will be empty.
In TMS470 compiler, there was no error but while
using TIARM5 compiler, i face the follwing error:
ERROR: critical linker warning found:
warning: creating output section ".cinit" without a SECTIONS specification
ERROR: critical linker warning found:
warning: creating output section ".cinit" without a SECTIONS specification



Can you please let me know how to suppress this error.


Thanks,
Swetha
  • Are you building a C or C++ program?  I don't know how it is possible to have an empty .cinit section in that case.  Please post your linker map file.

    Thanks and regards,

    -George