home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9275 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.3 KB  |  32 lines

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