SPRU513Y August 2001 – June 2022 SM320F28335-EP
For COFF ABI, the compiler prepends an underscore _ to the beginning of all C/C++ identifiers. That is, for a function named foo2(), foo2() is prefixed with _ and _foo2 becomes the link-time symbol. For example, the --localize and --globalize options accept link-time symbols. Thus, you specify --localize='_foo2' to localize the C function _foo2().
For EABI, the link-time symbol is the same as the C/C++ identifier name. The compiler does not prepend an underscore to the beginning of C/C++ identifiers.
For more information on referencing symbol names, see the "Object File Symbol Naming Conventions (Linknames)" section in the TMS320C28x Optimizing C/C++ Compiler User's Guide.
For information specifically about C++ symbol naming, see Section 14.4.1 in this document and the "C++ Name Demangler" chapter in the TMS320C28x Optimizing C/C++ Compiler User's Guide.
See Section 9.7.1 for information about referring to linker symbols in C/C++ code.