I am trying to build one application in CCS5.1 for C674X DSP on TI814x.
It links to 4 different libraries.
When I build all the libraries in COFF and the application also in COFF, everything is building fine. [ The project was earlier built in CCS3.3 in COFF, so I tried first building it in coff in CCS5.1]
When I build the libraries in ELF, they are building properly.
The application code is compiling properly, but at the time of linking it shows:
<Linking> fatal error #10232: relocation type "R_C6000_ABS32" in file "E:/../lib/import/ialg_mpeg4_dec.lib" at offset 0x0000012c in section ".debug_info" references symbol "__TI_DW.debug_info.E:/../include/private/xdm_idma_fxns.h.d70e9972ea84ea3dd357769c299e1565" in discarded section with id (965); references to this symbol from this location are not allowed.
As I interpret, here the "ialg_mpeg4_dec.lib" is referencing the symbol "__TI_DW.debug_info.E:/../include/private/xdm_idma_fxns.h.d70e9972ea84ea3dd357769c299e1565" in "xdm_fxns.h" (which is part of another library called my_xdm_fxns.lib). Is this correct?
I checked that this symbol is present in the symbol table for "my_xdm_fxns.lib" [with giving -s option in the archiver command].
What is the meaning of "discarded sections" and what can be done to solve this issue?
CCS5.1 Application project build options used for ELF format:
Output Format: ELF
C6000 Compiler Options > Runtime Model Options > Application Binary Interface (--abi) = eabi
C6000 Compiler Options > Assembler Options > “Aid for transitioning hand-coded assembly from COFF to ELF (--strip_coff_underscore)” enabled
CCS version: 5.1.0.09000
CGTools version: 7.3.1
Thanks in advance,
Abhishek