Sometimes I need to link an object file (e.g. bootloader.o) to my application, and I do not want to build it, or I do not have the sources to build it. There is a simple way with the GNU ARM Eclipse plugins to link extra object files:
In the project settings, under Cross ARM C++ Linker > Miscellaneous, there is the ‘Other objects‘ settings where I can add one or more object files I want to have added to the linker. I just need to make sure that the linker can find the files. That’s it :-).
Happy Linking 🙂