* Dynamic load: DIGEST
@ 1995-01-27 8:27 Jean-Luc Meunier
1995-02-04 11:00 ` Paul M. Aoki
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Luc Meunier @ 1995-01-27 8:27 UTC (permalink / raw)
Hi,
This is a digest of the answers I got to my question about the "dynamic load":
>> I am looking for information on how loading foreign or external code
>> in a running application. (Also called 'dynamic load', 'foreign code load')
It appears now to me that it is possible on (at least) :
SunOS4, SOLARIS, HP-UX, AIX, Unixware, OSF/1
and not possible on ULTRIX
Some tips (which do not replace a look at the man at all...):
- - - - - - - - - - - - - - - - - - -
On SunOS, SOLARIS, Unixware: dlopen, dlsym ...
Compile with the -G flag to create a sharable object and link the application
with the dl library.
- - - - - - - - - - - - - - - - - - -
On HP-UX: shl_load, shl_findsym ...
The code to be loaded has to be compiled in position-independent (+z/+Z) and
linked using ld -b.
- - - - - - - - - - - - - - - - - - -
On AIX: load, loadbind
Compile the shared object using -bE, -bI ...
- - - - - - - - - - - - - - - - - - -
On OSF/1: dlopen, dlsym
- - - - - - - - - - - - - - - - - - -
Thanks to:
casper@fwi.uva.nl morgan.herrington@nosun.West.Sun.COM thomas@lkg.dec.com
dlp@thesphere.com sarto!jhpb@uunet.uu.net chaltas@fluid.mro.dec.com
msw@jurassic-50.Eng.Sun.COM jr@ebi.ac.uk msteed@TFS.COM
curtw@hpcll58.cup.hp.com marc@epheh.sde.hp.com reggie@phys.washington.edu
sellxha@ptsc.slg.eds.com guy@netapp.com
===============================================================================
Jean-Luc Meunier e-mail: JeanLuc.Meunier@cginn.cgs.fr
Cap Gemini Innovation
7 chemin du Vieux Chene tel : (33) 76.76.47.24
38240 Meylan fax : (33) 76.76.47.48
===============================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Dynamic load: DIGEST
1995-01-27 8:27 Dynamic load: DIGEST Jean-Luc Meunier
@ 1995-02-04 11:00 ` Paul M. Aoki
0 siblings, 0 replies; 2+ messages in thread
From: Paul M. Aoki @ 1995-02-04 11:00 UTC (permalink / raw)
meunier@capsogeti.fr (Jean-Luc Meunier) writes:
| >> I am looking for information on how loading foreign or external code
| >> in a running application. (Also called 'dynamic load', 'foreign code load')
|
| It appears now to me that it is possible on (at least) :
| SunOS4, SOLARIS, HP-UX, AIX, Unixware, OSF/1
| and not possible on ULTRIX
(apologies for the cross-post, but i figured that this might be
useful information for somebody else who has to port something that
requires dynamic loading to ultrix. unlikely, true, but you never
know.)
the vendor-supplied mips/ultrix libraries do not support this, but
there are freeware dynamic-loading solutions that work. andrew yu
has written a couple of dlopen/dlclose/dlsym libraries, the most
recent being "libdl".
ftp://s2k-ftp.cs.berkeley.edu/pub/personal/andrew/README
ftp://s2k-ftp.cs.berkeley.edu/pub/personal/andrew/libdl-1.1.tar.Z
libdl has been exercised pretty heavily -- we use it in the postgres
extensible dbms and has proven to be much, much more robust than our
previous solutions (based on either "ld -A" or gnu dld).
version 1.1 added support for r4000-based decstations.
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-04 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-27 8:27 Dynamic load: DIGEST Jean-Luc Meunier
1995-02-04 11:00 ` Paul M. Aoki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox