Path: utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-request From: net%TUB.BITNET@mitvma.mit.edu (Oliver Laumann) Newsgroups: comp.sys.sun Subject: Re: Dynamic loading for SunOs Keywords: SunOS Message-ID: <3108@brazos.Rice.edu> Date: 13 Nov 89 15:56:41 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 19 Approved: Sun-Spots@rice.edu X-Refs: Original: v8n190 X-Sun-Spots-Digest: Volume 8, Issue 200, message 2 of 11 In article <2885@brazos.Rice.edu> you write: > 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. You may want to look into the `Elk' Scheme interpreter that has been posted to comp.sources.misc a couple of weeks ago. Elk contains a module that implements dynamic loading of object files into the running process (see the file src/load.c); it makes use of the -A linker option (incremental loading). If you didn't get the above-mentioned posting or have more specific questions about dynamic loading, send me e-mail. Regards, Oliver Laumann net@TUB.BITNET net@tub.UUCP