Dynamic function loading for SunOs

Jim Bosco bosco%pwa-b at uunet.uu.net
Sat Nov 4 08:30:19 AEST 1989


Is there a way to link, at runtime, an arbitrary object file to the
current process? The name of the subroutine to dynamically link is not
known at compile/link time. It becomes known during execution. This object
file must share the address space of the parent process. The linking
should resolve external references in the object file with entry points in
the current process.

It appears that forking/execing a process and using the System V shared
memory routines might be a work around, but is this the only solution?
The program's data structures contain many pointers to malloc'ed storage.
The bookkeeping to manage all of the shared memory identifiers between the
processes would be a burden. 



More information about the Comp.sys.sun mailing list