Part Number: TMS320F28377S
Tool/software: TI C/C++ Compiler
I need to group some sections together, including sections from a library. I've tried to follow the grouping / naming suggestions as described in
http://processors.wiki.ti.com/index.php/Linker_Command_File_Primer
Extract of my linker command file:
SECTIONS
{
MyLibrary
{
-l..\path\to\my\library.lib(.text)
}
GROUP : >> RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4, PAGE = 0
{
.text
MyLibrary
.cinit
.econst
}
}
The problem is MyLibrary is put after the .cinit / .econst sections.
Questions:
1) How can I group the sections so the order is as following:
.text
MyLibrary.text
.cinit / .econst
2) I've read I can define -l..\path\to\my\library.lib at the top of the file and then just use the name library.lib. Where / how do I need to define it?