loadble module

Keith Packard keithp@keithp.com
Wed, 14 Jan 2004 15:39:43 +1030


Around 23 o'clock on Jan 13, Sean Middleditch wrote:

> I'm probably a complete moron and missing something here, but please
> humour me: why does the server need to be a shared object for dlopen'd
> files to see the symbols?  You need only compile your binary properly (I
> forget the exact flags; -shared for gcc?) and any loaded libraries will
> see all symbols in the binary.

Really?  Cool.  /me learns something new.

> Additionally, if that isn't possible due to limitations on particular
> platforms, you can simply pass a custom symbol table (struct with function
> points) to a driver.

That would require significant source-level changes to every driver; that 
seems like a huge pain give that the loader should be able to deal with 
this.

Hack at will!

-keith