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.
Tool/software: TI C/C++ Compiler
Hello.
In the linker command file I can force the linker to place all global variables of all objects into one self defined section:
GLOBAL_VAR_RAM_DATA:
{
*.obj (.bss)
} > GLOBAL_VAR_RAM_RAM
This works, but how can I specify only the objects from one directory?
GLOBAL_VAR_RAM_DATA:
{
dir1\*.obj (.bss)
} > GLOBAL_VAR_RAM_RAM
This doesn't work. I get a linker warning: warning #10068-D: no matching section
Thanks
BR
Christian
Christian Fuchs1 said:how can I specify only the objects from one directory?
Unfortunately, there is no direct way to do it. The best suggestion I have is to rename all the related source files with a common prefix. For example, files named one.c, two.c and three.c would change to prefix_one.c, prefix_two.c, and prefix_three.c. Then you could write something similar to ...
GLOBAL_VAR_RAM_DATA { prefix_*.obj(.bss) } > GLOBAL_VAR_RAM_RAM
Thanks and regards,
-George