Hi There,
I have modified the cfg file to load platform library. There is a linker error and is mentioned below.
warning: creating output section "platform_lib" without a SECTIONS specification
Regards,
Santosh
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.
Hi There,
I have modified the cfg file to load platform library. There is a linker error and is mentioned below.
warning: creating output section "platform_lib" without a SECTIONS specification
Regards,
Santosh
The linker is warning you of a likely problem. The output section "platform_lib" is automatically created. Most significantly, it is placed in target memory using the linker default algorithm. Thus, it is very likely "platform_lib" is being placed in memory somewhere you don't want. You need to explicitly create and allocate the output section "platform_lib" in your linker command file.
Thanks and regards,
-George
Can you please give me some hints to sort this issue? Like any linker doc and corresponding section? Any existing code examples and what are the fields that needs to be configured in CFG file ?
The linker is documented in this user's guide. A line similar to this in the SECTIONS directive of the linker command file is one way to address your issue.
platform_lib > MEMORY_RANGE_WHERE_YOU_WANT_IT
Thanks and regards,
-George
If you are using a .cfg file, then you will need to add a line like this:
Program.sectMap["platform_lib"] = "L2SRAM";
or this:
Program.sectMap["platform_lib"] = "DDR3";