home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!timbuk.cray.com!shamash!runyon.cim.cdc.com!pbd
- From: pbd@runyon.cim.cdc.com (Paul Dokas x4629)
- Newsgroups: comp.unix.aix
- Subject: Re: A better dynamic loader???
- Message-ID: <45692@shamash.cdc.com>
- Date: 27 Jul 92 16:27:51 GMT
- References: <45628@shamash.cdc.com> <19920727.073431.240@almaden.ibm.com>
- Sender: usenet@shamash.cdc.com
- Reply-To: pbd@runyon.cim.cdc.com (Paul Dokas x4629)
- Organization: ICEM Systems, Inc
- Lines: 22
-
- In article <19920727.073431.240@almaden.ibm.com>, pgainer@vnet.ibm.com (Patrick Gainer) writes:
- |> >In article <45628@shamash.cdc.com> pbd@runyon.cim.cdc.com (Paul Dokas) writes:
- |> >>I need to be able to execute dynamically loaded modules from within another
- |> >>program, but I can't seem to find the needed functionality anywhere. What I
- |> >>have right now is a program that uses load() to pull in a module and then it
- |> >>calls the function pointed to by the return value of load(). This works
- |>...
- |> An easy way to do this is to use load(), as Mike says, then to call nlist()
- |> which returns offsets of functions within a single object module, then
- |> calculate the function addresses from the offsets returned by nlist() and
- |> the entry point returned by load().
- |>
- |> I happen to have some code which does exactly what you want - I'll send it
- |> to you if you'd like.
-
- This is exactly what I'm going to do. Thanks to all who replied!!!
- --
- #include <std.disclaimer>
- #define FULL_NAME "Paul Dokas"
- #define EMAIL_PRIMARY "pbd@power1.cim.cdc.com"
- #define EMAIL_SECONDARY "pbd@runyon.cim.cdc.com"
- /*** Overpopulation is the leading cause of most environmental problems ***/
-