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.

CCSTUDIO: CCS10.1.1 - ARM - TI v20.2.4 LTS

Part Number: CCSTUDIO

We ae using CCS10.1.1 - ARM - TI v20.2.4 LTS for our project, as specified in the TI portal the following compiler errata's unable to reproduce, could you please provide us examples so that we can recreate it in our lab.

link: https://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/20.2.4.LTS/README.html

CODEGEN-104:  

Linker gives misleading warning when dot expressions used in SECTION directive for .stack section

  • Here is a contrived example which demonstrates the problem.

    These two commands show a stub main program, and a linker command file that uses an unusual method for creating the stack.

    C:\workdir>type stub_main.c
    int main()
    {
       return 0;
    }
    
    C:\workdir>type stub_link.cmd
    SECTIONS
    {
        .stack:
        {
            . += 0x1000;
        } > RAM
    }

    This command builds the program ...

    C:\workdir>armcl -mv7m3 -mt -me stub_main.c -z -o stub_main.out -w stub_link.cmd
    <Linking>
    warning: creating output section ".text" without a SECTIONS specification
    warning: creating ".stack" section with default size of 0x800; use the -stack
       option to change the default size

    The warnings are issued because the -w linker option is used.  The first warning is correct.  The second warning is not, and this is the bug.  Even though the method used to create it is unusual, a stack is created and it is larger then 0x800 bytes.  Therefore the warning should not be issued.

    Thanks and regards,

    -George