home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.misc:6210 comp.unix.solaris:459 comp.unix.programmer:5881 comp.unix.misc:4908
- Newsgroups: comp.sys.sun.misc,comp.unix.solaris,comp.unix.programmer,comp.unix.misc
- Path: sparky!uunet!spool.mu.edu!uwm.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!fstop!west
- From: west@chance.tsd.itg.ti.com (Roger West)
- Subject: Unresolved references in dynamically loaded shared library (SunOS 4.1.3)
- Message-ID: <WEST.93Jan11015448@chance.tsd.itg.ti.com>
- Sender: usenet@csc.ti.com
- Nntp-Posting-Host: chance.tsd.itg.ti.com
- Organization: Texas Instruments, Speech Mushrooms.
- Date: Mon, 11 Jan 1993 07:54:48 GMT
- Lines: 33
-
-
- Hello,
-
- I am involved in developing an application which requires dynamically loading
- and executing functions from shared libraries which don't necessarily exist at
- the time the application driver itself is linked. When these functions in turn
- have calls to functions in other shared libraries, ld.so successfully resolves
- these references as long their definitions reside in libraries which were
- scanned by ld at the time the application driver was linked (system libraries,
- for example).
-
- The problem I have run into is that some of these function definitions reside
- in other shared libraries which have also been dynamically loaded. In this
- case (unless the references and the definition reside in the same library),
- ld.so has no knowledge of these dynamically loaded libraries and therefore
- cannot search them.
-
- Is there a way to augment this list of dynamic dependencies at run time so that
- the search performed by ld.so can be extended to these dynamically loaded
- libraries? Investigation of the data structures defined in /usr/include/link.h
- seems to indicate that there is indeed a way this can be done, if the the
- programmer has knowledge of the dynamic linking mechanism beyond what is
- available from the Sun manuals.
-
- I would be grateful for any comments or pointers to related material.
-
-
- --
- _____________________________________________________________
- | Roger West Internet: west@tsd.itg.ti.com |
- | Texas Instruments Inc. TI MSG: RWES |
- | PO Box 149149, MS 2201 Voice: (512) 250-7372 |
- |___Austin, TX 78714-9149________Fax: (512) 250-7104________|
-