We have an issue while trying to compile .asm files on the C674X DSP,
We have a DSP out file, which depend on a certain lib (coded in assembly), the issues is:
When I have a .asm file which is compiled in the lib -> while linking the DSP out file, I’m getting undefined symbols (on the function in the .asm file)
When I move the .asm file to compile as part of the DSP out makefile, I’m getting the same result
When I move the .asm file to compile as part of the DSP out makefile AND change the function prefix (removing all ‘_’ at the beginning of the function name in the .asm file), all is OK
Is there any compiler option to allow taking '_' prefixed assembly functions and linking with C code?
Please mark this post as answered via the Verify Answer button below if you think it answers your question. Thanks!
Are you using EABI or COFF ABI?
Are you building for EABI? If so, assembly symbol names are not prepended with the underscore (differently than COFF ABI where they are). Please see this wiki page which describes the difference between COFF ABI and EABI and ways to handle this difference in naming:http://processors.wiki.ti.com/index.php/C6000_EABI_Migration#Assembly_Code_Changes_.28C_and_C.2B.2B_ABI_Changes.29
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box