From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa5a5,ffe1992c35f8f13,start X-Google-Attributes: gidfa5a5,public X-Google-Thread: 10c665,ffe1992c35f8f13,start X-Google-Attributes: gid10c665,public X-Google-Thread: 11035d,ffe1992c35f8f13,start X-Google-Attributes: gid11035d,public X-Google-Thread: fee84,ffe1992c35f8f13,start X-Google-Attributes: gidfee84,public X-Google-Thread: 115614,ffe1992c35f8f13,start X-Google-Attributes: gid115614,public X-Google-Thread: fb4a0,ffe1992c35f8f13,start X-Google-Attributes: gidfb4a0,public X-Google-ArrivalTime: 1995-01-27 00:27:10 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!hookup!news.moneng.mei.com!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!news.sprintlink.net!pipex!news.oleane.net!oleane!csinn.cgs.fr!capsogeti.fr!meunier From: meunier@capsogeti.fr (Jean-Luc Meunier) Newsgroups: comp.unix.solaris,comp.unix.unixware,comp.unix.osf.osf1,comp.unix.sys5.r4,comp.unix.hpux,comp.unix.aix Subject: Dynamic load: DIGEST Date: 27 Jan 1995 08:27:10 GMT Organization: Cap Gemini Innovation, Grenoble, France Distribution: world Message-ID: <3gaaou$gl0@csinn.cgs.fr> Reply-To: meunier@capsogeti.fr (Jean-Luc Meunier) NNTP-Posting-Host: 194.2.88.91 Xref: nntp.gmd.de comp.unix.solaris:35795 comp.unix.unixware:19816 comp.unix.osf.osf1:7426 comp.unix.sys5.r4:10436 comp.unix.aix:47134 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 ===============================================================================