*BSD News Article 91473


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!newsfeeds.sol.net!news-xfer.netaxs.com!news.maxwell.syr.edu!newsfeed.nacamar.de!news.apfel.de!fu-berlin.de!news-ber1.dfn.de!news-ham1.dfn.de!news-han1.dfn.de!news-koe1.dfn.de!main.Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: BSDI 3.0 Impressive
Date: 18 Mar 1997 15:59:05 GMT
Organization: interface business GmbH, Dresden
Lines: 29
Message-ID: <5gme49$6qu@innocence.interface-business.de>
References: <332849E6.71CA@cet.co.jp> <332824B1.6B5F@opengroup.org>
  <E6zpJB.Iv0@news.interactive.net> <5giab8$l8h@vanbc.wimsey.com>
  <5gibgj$bu7@arrow.va.pubnix.com> <5gkf8g$sa8@picasso.op.net>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6385

root@candle.pha.pa.us (Bruce Momjian) wrote:

> Considering the system overhead of dynamic linked libraries compared to
> BSD/OS shared libraries, what is the advantage of dynamic linked
> libraries?

Mainly two reasons:

. consistency

Given that the other BSDs did already have a working SunOS-style
shared library system by the time BSDi developed its own one, i still
wonder whether this was just NYI, or really had other reasons.  Right
now, they are incompatible with NetBSD and FreeBSD, sigh.

. allow for late binding

Late binding can be interesting e.g. for binaries that decide at
run-time whether X11 is available in the target environment or not.
If it's not available, then there's no need to even have the shared
X11 libraries around at all.  Note that this is not possible with the
SunOS approach (AFAIK), but i remember that John Polstra implemented
it as an option to the (Free)BSD ELF loader.  If i'm not mistaken,
it's the default on SVR4.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j