Hi,
This seems to be the smart linking behavior.
Only the code used in the application are really included at link phase.
All un-used codes are removed.
You can switch off this option via the linker settings but this could generate lot of new errors for all objects referenced and not declared/defined.
This is not the right way.
Now you can use the ENTRIES ... END
For instance you can have:
ENTRIES
myVar1 myVar2 myProc1 myProc2
END
This example specifies the variables myVar1 and myVar2 as well as the function
myProc1 and myProc2 as additional entry points in the application.
ENTRIES
myFile1.o:* myFile2.o:*
END
This example specifies all the objects (functions, variables, constant variables or string
constants) defined in file myFile1.o and myFile2.o as additional entry points in the application.
ENTRIES
*
END
This example switches OFF smart linking for the whole application. That means that all
objects defined in one of the binary files building the application are linked with the application.
For details please have a look to the \CW_MCU_v10.6\MCU\Help\PDF\MCU_Build_Tools_Utilities.pdf manual.
Page 81 on my version.
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------