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.

Load placement ignored for section.

Hello,

I am looking for some help with the GROUP directive in  a Linker Command File as I have run in a situation that I cannot makes sense of.

Per the  TMS320x Assembly Language Tools v6.0.pdf it should be possible to do a statement like the following.

 GROUP: LOAD= SECTIONA, RUN= SECTIONB {// Sections to include }

However when I do this I get a warning indicating that the LOAD placement directive is being ignored.

Can someone please provide insight to why this is happening.  I have attached a sample project that demonstrates the issue.

 

Thanks,

Paul

 

LinkerWorkspace_v001.zip
  • Paul,

    It seems like there is a restriction that when using GROUP with separate run and load addresses, the section must be an initialized section.

    As per section 7.5.6.4:

    "The linker checks the consistency of load and run allocations specified for unions, groups, and sections.
    The following rules are used:

    • The linker does not accept a load allocation for uninitialized sections."