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
I'm trying to realize why compiler/linker doesnt drop the unreferenced symbols, and the only way i can do that is with --gen_func_subsections.
however, i dont want to use the subsection option, is there any other flag I can use in order to not link the unreferenced symbols?
working with TMS470 version 5.1.4, eabi, TI-COFF
thanks
Gilboa Shveki said:working with TMS470 version 5.1.4, eabi, TI-COFF
That is inconsistent. COFF object file format is available only when using the older ABI with the option --abi=ti_arm9_abi. ELF object file format is available only when using the new ABI with the option --abi=eabi. For now, I presume you use --abi=ti_arm9_abi and COFF.
Gilboa Shveki said:is there any other flag I can use in order to not link the unreferenced symbols?
Not when you use --abi=ti_arm9_abi and COFF. The option --gen_func_subsections is the only method.
Can you change to --abi=eabi and ELF? If so, then default behavior of the tools is to not keep functions which are never called.
Thanks and regards,
-George
Please consider using the technique described in the ARM compiler manual section titled Generate List of Dead Functions.
Thanks and regards,
-George