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.
Hi,
to start, I have read https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/113303/403579#403579
This gives me hope that what I want to do might possible. I am trying to put the .text of a .lib file based off of a symbolic path in an output section. I can link this into the project with the symbolic path:
${CC26XXWARE}/driverlib/bin/ccs/driverlib.lib, where CC26XXWARE is defind in the project's linked resources as C:\ti\tirtos_cc13xx_cc26xx_2_16_00_07_eng\products\cc26xxware_2_23_01_16780, the common parent folder between the CCS project and this library would be C:\, and the project folder of the CCS project could be at an arbitrary depth.
I would prefer not to link this .lib in my linker command file by its absolute path. Is there a way to do this?
Thanks,
-Sam
You cannot directly refer to a CCS variable from within the linker command file. But I don't think you need to. You could add something like ...
${CC26XXWARE}/driverlib/bin/ccs
... to the list of directories searched by the linker (see screen shot below). Then you can use the methods described in the section titled Specifying Library or Archive Members as Input to Output Sections of the ARM assembly tools manual.
Thanks and regards,
-George
SamP said:By itself, the linker cannot break apart the .text section into smaller chunks
It can if you use section splitting. Read about that in this application note.
Thanks and regards,
-George