On Mon, May 01, 2006 at 10:27:56PM +0100, Steve Harris wrote: > On Mon, May 01, 2006 at 11:24:03PM +0200, Lars Luthman wrote: > > Do you mean that the plugin should dlopen the host? Wouldn't that > > require some way to pass the path to the host program to the plugin (in > > which case you might as well pass a function pointer directly)? > > I mean the linker should do it. If you dynamically build the plugin > against a stub library and the host exports something with the same ABI, I > /think/ the plugin should have the host's version of the function in its > namespace.
From what I glean from this you are talking about having the plugin .so access symbols that are defined in the host. I know this is possible, and you don't even have to link against any stub library. Check out the -E or --export-dynamic option to gnu ld. I don't know if this is a good idea, though. It feels kinda freaky.
