Unfortunate dynamic linking for everything

dyson at iquest.net dyson at iquest.net
Tue Nov 18 15:54:02 PST 2003


Garrett Wollman said:
> <<On Tue, 18 Nov 2003 18:07:32 -0500 (EST), dyson at iquest.net said:
> 
> > If the object is to maximally 'share',
> 
> The object, AIUI, is for ~username expansion to work in the shells
> when the user stored somewhere defined by an external NSS module.  I
> don't believe that there is anything else in a (sane) shell that
> cares.
> 
It is a fallacy that EVERYTHING (e.g. libc) needs to be dynamically
linked to support that feature.  A single, self contained library
that might even be sparse WRT memory isn't going to hurt much.

A compromise that supports both a 'feature' and performance
seems to be appropriate.  Making everything shared (with
the sparse allocation of .data, and .text somewhat) to implement
a specific feature is certainly wasteful.

All or nothing isn't the optimal answer here.

John


More information about the freebsd-current mailing list