bosco%pwa-b@uunet.uu.net (Jim Bosco) (11/04/89)
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.