Skip to main content
Visitor II
September 5, 2018
Question

segment .bss size overflow

  • September 5, 2018
  • 2 replies
  • 2173 views

I no longer compile the code successfully. I got the following error:

#error clnk Debug\most_software.lkf:1 segment .bss size overflow (5649)

 The command: "clnk -l"C:\Program Files (x86)\COSMIC\FSE_Compilers\Lib" 

Does anybody know how can I solve this issue. I am using STM8S208 microcontoller and programming environment is STVD.

    This topic has been closed for replies.

    2 replies

    KSagAuthor
    Visitor II
    September 5, 2018

    #overflow #memory-usage #segment-overlap #memory-overflow

    Urgent Help needed!

    Visitor II
    November 21, 2018

    I am using Cosmic C, but should be the same issue.

    I think this is a 'bug' in the linker.. it would seem that if you follow segment after segment, each one takes the attribute of the previous(?) or the mere fact it starts in .bsct range (i.e. page0) it gets limited to bsct address range i.e. 0 - 0xFF.

    Try changing the linker file (*.lkf) line to:

    +seg .bss -b 0x100 -n .bss

    You will need to uncheck "use target specific linker file" as well to ensure its not overridden.

    This solved the same issue in my program.

    Simon