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.

Command linker file

I would like to place some .obj from the rts2800_ml.lib into two different Flash sectors using .cmd linker file, how can I do it?

  • fiorello miotto said:

    I would like to place some .obj from the rts2800_ml.lib into two different Flash sectors using .cmd linker file, how can I do it?

     

    Please refer to example 7-8 "Archive Members to Output Sections" in www.ti.com/lit/spru513 you can place different .obj files in different sections.   To figure out what .obj file a function belongs to I suggest looking at the .map file generated by the codegen tools.

     Example 7-8 specifies that the text sections of boot.obj, exit.obj, and strcpy.obj from the run-time-support library should be placed in section .boot. The remainder of the .text sections from the run-time-support library are to be placed in section .rts. Finally, the remainder of all other .text sections are to be placed in section .text.

     

    Regards,
    -
    Lori