home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!sun-barr!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!ryn.mro4.dec.com!rab.enet.dec.com!rice
- From: rice@rab.enet.dec.com ()
- Subject: finding function address in dynamically loaded object
- Message-ID: <1992Sep1.192454.28418@ryn.mro4.dec.com>
- Lines: 20
- Sender: news@ryn.mro4.dec.com (USENET News System)
- Reply-To: rice@rab.enet.dec.com ()
- Organization: Digital Equipment Corporation
- Date: Tue, 1 Sep 1992 19:24:54 GMT
-
-
- The load routine returns a function pointer to the routine specified by
- ld -e function. There must be a way of getting the address of other functions
- in the loaded object!?!. Every other OS I've used with run time dynamic
- libraries provides a find symbol routine.
-
- There was an example posted here a while back using nlist. That only works
- if you know what the function symbol is for the "ld -e function" specified
- was, not my case.
-
- I've been looking at the loadquery( L_GETINFO,...) call. I was hoping to make
- use of the ld_info structure information, except that, I haven't been able
- to figure it out. First off I expected "ldinfo_next" to be zero as it said
- in <sys/ldr.h> but it doesn't seem to be (is buffer and array of ld_info's?).
- From there I tried looking down "ldinfo_textorg" at the xcoff struct but
- really got lost there. Any guiding light out there?
-
- Thanks,
- -Tim
-
-