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 all,
I am trying to build a project using the --relocatable option, on CCSv5.3. The summary of flags set on the project properties for the C2000 linker is:
-v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 -g --diag_warning=225 -k --asm_listing -z --stack_size=0x300 -m"project.map" --warn_sections -i"C:/User/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/User/ccsv5/tools/compiler/c2000_6.1.0/include" -i"C:/Project/include" --reread_libs --priority --define=CLA_SCRATCHPAD_SIZE=0x100 --xml_link_info="C:/Project/Debug/PProject .xml" --relocatable --entry_point=code_start --rom_model
But the build process stops with the message:
"error: errors encountered during linking; "PEBB1_CellController.out" not built"
And the errors are all of type "program will not fit into", many of those on the F2806x_Headers_nonBIOS.cmd
What is needed to have the -relocatable option working ?
Thank you very much for your attention.
Hi George,
Thank you for your answer, but the link didn't help me. I don't get any linker error if a build the project without the --relocatable option, but the error happens with the same command files just by adding the --relocatable option. Is there anything else I should do to use this option ?
Sorry, I didn't mention that my intention on using this option is to have something similar to the Dynamic Linking explained on the following link: http://processors.wiki.ti.com/index.php/C6000_Dynamic_Linking
Do you think it is possible to implement a similar funcionality for the C2000 ?
Thank you for your attention.
Denise
It's possible, but most likely impractical unless/until the C2000 toolchain switches to ELF. You can do a lot of what dynamic linking gives you if you can generate position-independent code (PIC), but the C2000 compiler doesn't support that, either.
Thank you for your answer, which prevents me from trying something not pratical !