Mon Jul 27 14:21:29 CEST 2009

linker adventures

When linking an application with a couple of .o files it will only
take the objects actually needed.  Now, how can this be overridden?
I.e. I want to include stuff into an application so that the app can
dlopen() a .so that uses functions from the object.

I don't know how to fix this other than putting everything in a shared
library and write a small wrapper app around the lib.

Use the -rdynamic flag passed to gcc - it will then pass the correct
options to the linker.