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.

AM3358: About Linker Scripts

Part Number: AM3358

Hi,

We have a question from one of our clients.

They have been developing with CCS 5.5 for a long time, and are porting to the CCS 9.3 environment for new development.
They have been using .cmd files for memory configuration in CCS5.5 and are trying to use .lds files for configuration in CCS9.3, but there are some inconsistencies and other problems.
So I have been asked by them if there is a manual or sample linker script.
Is there anything that would be helpful for them?

Best Regards,

Kouji Nishigata

  • They have been using .cmd files for memory configuration in CCS5.5 and are trying to use .lds files for configuration in CCS9.3

    The file extension .cmd is typically associated with a linker command file used with a linker from a TI proprietary compiler toolchain. The file extension .lds is typically associated with a linker script used with a linker from a GCC compiler toolchain.  Is the customer changing from a TI proprietary compiler toolchain to a GCC compiler toolchain?

    Thanks and regards,

    -George

  • Hi, George

    Thanks for the reply

    I forgot to mention that they are using GCC 7.2 in this CCS 9.3 environment.

    Best Regards,

    Kouji Nishigata

  • So, the customer is changing from a TI proprietary compiler toolchain to a GCC compiler toolchain.  Unfortunately, TI has no articles or similar material related to that topic.

    This ...

    A Primer on Linker Scripts and Command Files.pdf

    ... is the slides from a presentation I gave at the Embedded System Conference a few years ago.  The title is: A Primer on Linker Scripts and Command Files.  

    The article Linking: Migrate from Arm GCC to tiarmclang talks about how to change from a GCC linker script to a TI linker command file.  That is opposite of what you are doing.

    While neither presentation/article is on point to your situation, I think you will find parts of each helpful.

    As for examples, please search for a software development kit (SDK) for your device.  Some, but not all, of them have examples that build with Arm GCC compilers, and thus include GCC linker scripts.

    Thanks and regards,

    -George

  • Hi, George

    Thanks for your answer.

    I will have a customer take a look at it first.
    If there are any individual questions, I will try to ask them separately.

    Best Regards,

    Kouji Nishigata