Part Number: SECDEVTOOL-OMAPL138C6748
Other Parts Discussed in Thread: OMAPL138
Tool/software: TI C/C++ Compiler
Hi,
I can't solve the Linker "unresolved symbols remain" problem. The project is a copy of a project that builds and runs correctly. I changed the copied project to use TI-COFF instead of ELF. I have some older libraries without the source and they were built with COFF. I would like to try and use the older libraries. I rebuilt the system_config.lib from the source files in TI starterware. That seems to work. I have tried all sorts of changes to paths and underscore, double underscores and still get the same error.
I'm using a startup.c file from starterware that has the function start_boot(void) in it, and loading init.obj in the linker cmd file. The reason for those steps is to have the main() called while remaining in supervisor mode. There are many initializations I need to do at startup and would like to do them in C and not ASM or the GEL file.
I think my problem is in specifying the correct paths, a name mangling issue, or some difference between ELF and COFF formats..
Here's the last part of the build listing:
Here are the code sections I think are important.
Part of the linker cmd file:
SECTIONS
.global Entry
.global start_boot
.global __TI_auto_init
.ref __stack
.ref __STACK_END
.ref bss_start
.ref bss_end
.ref start_boot
_stackptr: .word __STACK_END
_bss_start: . word bss_start
_bss_end: .word bss_end
_start_boot: .word start_boot
_data_auto_init: .word __TI_auto_init