Subject: Re: compiling iij-ppp
To: None <David.Eckhardt@b.gp.cs.cmu.edu>
From: Chris G. Demetriou <cgd@pa.dec.com>
List: netbsd-help
Date: 05/11/1997 16:42:27
> Is this really true?  I had though that the link patching done by ld.so
> actually meant that many pages of a "shared" library ended up being
> duplicated by copy-on-write.

True.  However, the purpose of compiling into PIC code is to make sure
that those link patches are aggregated into on region, rather than
spread out throughout the library as they would be with non-PIC code.

In other words, you do copy-on-write duplicate a few pages, but not
a large number.  Otherwise, shared libraries would probably _waste_
memory.  8-)


cgd