Other Parts Discussed in Thread: TMDS570LS31HDK
Tool/software: TI C/C++ Compiler
Development kit:: "TMDS570LS31HDK Hercules Development Kit"
CCS version CCV8.
Compiler tool chain: ti-cgt-arm_18.1.1.LTS
For writing tests I have needs to provide stubs of the functions (one or more) implemented in one or more than one source files. I have used the '--gen_func_subsections' compiler options to put each function in its own section and see the effect in the .lst file. I have also used the linker option '--unused_section_elimination=on' explicitly even though the default is always on. But I still get error #10056 symbol redefined error during linking. using the option --diag_warning=10056 or --diag-remark=10056 does not downgrade the error to warning or remarks.
I have the stub obj before the actual obj implementing the actual functionality so the stub should get linked into the out file.
How can I suppress the 10056 error and have the stub take precedence over the actual implementation during linking?
I have referred this thread "https://e2e.ti.com/support/tools/ccs/f/81/t/218808?tisearch=e2e-sitesearch&keymatch=stub%2010056" but the recommendation in the thread to have each function in its own source file is useless.