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.

c67xfastMath.lib: expsp.obj is partly in unspecified "text" section

C6713B, DSP/BIOS, c67xfastMath.lib, CCS 4.2.1 linker

I am trying to use divsp() and expsp( ) from the C67x FastRTS library.   I get the following linker message:

warning: creating output section "text" without a SECTIONS specification

The linker .map file shows "c67xfastMath.lib : divsp.obj (.text)" in the same section with other object code modules. 

The other module, expsp.obj, is in pieces:

     c67xfastMath.lib : expsp.obj (.text:hand)

     c67xfastMath.lib : expsp.obj ($Tramp$S$$_expsp)

     c67xfastMath.lib : expsp.obj (text)

Should I modify the .cmd file to create a "text" section?   There is a message at the top of the file warning me NOT to directly modify it.

  • Les Perry,

    That last line you list with (text) is what causes your warning, and it needs to be fixed. Unfortunately, it may be a typo in one of our files. When I did a search for files named expsp.asm on my PC, I found that it has a line in the file that says ".sect text" where it should be either ".sect .text" or simply ".text".

    You are correct to avoid making direct edits to the DSP/BIOS-generated linker .cmd file.

    You have two choices how to solve this:

    1. The "right" way is to edit the file and rebuild the library so it will not try to create a section named text, but this is requires an understanding of how to re-build the library. This should be explained well enough in the User's Guide for the library, but it always worries me a little to do something like that.

    2. The "easy" way is to create a second linker command file to tell the linker where to put the "text" section:

    textsect.cmd said:

    SECTIONS
    {
        text > L2SRAM /* or whatever the name is that goes with ".text" in the DSP/BIOS-generated linker command file */
    }

    Create this file in your Project folder and CCSv4 will automatically use it in addition to your other .cmd file.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.