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?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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