This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I was wondering if there is a way for TMS570 linker to provide the symbol table of a linked binary (*.out) file as input when linking a second binary. I want to link two binaries into the internal flash memory, where the second one makes use of functions included in the first one.
--- FIRST binary ---
void bar ( int foo )
{
printf ("'bar' called by foo%d\n", foo);
}
void foo1 ( void )
{
bar (1);
}
--- / FIRST binary ---
--- SECOND binary ---
extern void bar ( int foo );
void foo2 ( void )
{
bar (2);
}
--- / SECOND binary ---
My idea would be linking the first binary and feed its symbol table to the linker when creating the second binary so it knows the address of function 'bar' when resolving the external symbol 'bar'. Is there some way to do this?
Thanks in advance!
Stefan
I recommend you consider another approach to this problem. Put bar (and other functions called by both executables) in an object library. Then make that library an input to the link command used to build each executable. One example of a library is the RTS library that comes with the compiler. LIbraries are created with the archiver utility. It is described in the ARM assembly language tools manual.
Thanks and regards,
-George