Linking additional Object Files with GNU Linker

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:

Other Objects for GNU Linker

Other Objects for GNU Linker

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 🙂

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.