*BSD News Article 44890


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!newsroom.utas.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!gatech!news.sprintlink.net!news.nynexst.com!nynexst.com!hjl
From: hjl@nynexst.com (H.J. Lu)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Dynloading and FBSD2.?
Date: 2 Jun 1995 17:15:42 GMT
Organization: Nynex Science & Technology, Inc.
Lines: 22
Distribution: world
Message-ID: <3qngvu$aet@news.nynexst.com>
References: <3qn4eq$7m5@shore.shore.net>
NNTP-Posting-Host: jalod.nynexst.com

In article <3qn4eq$7m5@shore.shore.net>, witr@rwwa.com (Robert Withrow) writes:
|> As far as I can tell, there is no *supported* way of doing
|> on freebsd what you do with dl_open() and friends lets you
|> do on other systems.  I say *supported* because the crtl
|> startof code seems to roll its own versions of these routines,
|> but there is no man page and no .h file for general use of these.

I think it is called dlopen (). You should find it in xxxBSD.
But in my opinion, the SunOS style dynamic link/load is too weak.
The ELF one is much much better. You can find a paper at

ftp://sunsite.unc.edu/pub/Linux/GCC/elf.ps.gz.

H.J.

|> 
|> Has this changed in 2.0.5?  Can someone explain how to use
|> the existing 2.0 stuff (like, what to use for RTLD_LAZY, etc)?
|> 
|> -----------------------------------------------------------------------------
|> Robert Withrow, Tel: +1 617 598 4480, Fax: +1 617 598 4430 Net: witr@rwwa.COM
|>      R.W. Withrow Associates, 319 Lynnway Suite 201, Lynn MA 01901 USA