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.

TMS570LS0432: Linker-Defined Symbols issue

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Hi All,

My customer has found that he can’t force linker to generate special symbols related to stack memory arrangement.

These symbols are __STACK_SIZE and __STACK_END (or __TI_STACK_SIZE and __TI_STACK_END – it is now quite clear from the information I’ve found on the web).

According to SPNU151, section 6.1.2, the linker shall generate at least the __STACK_SIZE but it doesn’t... Any thoughts on why?

He has found a workaround: the HALCoGen generates similar macros (as opposite to symbol table entries) in sys_core.h so he is just using those. However, I am a bit uncomfortable that he can’t force the linker to do what it supposed to do in theory.

Many thanks in advance for your help,

Ross

  • Hi Ross,
    I will move your post to the compiler forum where they will have more expertise in helping with your question.
  • Ross Parlour said:

    My customer has found that he can’t force linker to generate special symbols related to stack memory arrangement.

    These symbols are __STACK_SIZE and __STACK_END

    I cannot reproduce this behavior.  Something odd must be going on.  Is there a section named .stack?  And it has non-zero length?

    Thanks and regards,

    -George