I'm using CodeWarrior V 6.3 and Coldfire M5485EVB.
I'm developing a small application which consists of a boot loader and a library (lib1.c,lib2.c). The boot loader will eventually load another application which invokes functions in my library.
Since the functions in my library are not invoked by my boot loader, linker does not include lib1.c and lib2.c in my final buillt i.e elf.s19 (dead stripping).I used the linker directive FORCEFILES { lib1.o lib2.o} ,at the end of my lcf file but it didn't work.
Do i have to use any other directives?
After every make command i check the elf [.xmap file] to see what all files are included in my final built
No it's still not working for me.. I have attached my project folder,there are couple of Files like queue.c and tasks.c which are still not included in my final elf.
There is one small doubt, i tried to run my project in CodeWarrior V7.1 and it's giving me a compile time error "undefined symbol vuint32", whereas the project runs perfectly fine in CodeWarrior 5.7 version.
Make sure to attach a reproducible project and installed product information to the service request. To generate the required information: - Start CodeWarrior - Open the project - Select "Help" -> "Pack and Go" and follow instructions on the screen.
Attach the generated .zip file to the SR.
I assume the type vuint32 was defined somewhere in your V6.3 installation and not in V7.1.
Anyway it is better to let the support team get a look at that.