Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site kitty.UUCP
Path: utzoo!watmath!sunybcs!kitty!peter
From: peter@kitty.UUCP (Peter DaSilva)
Newsgroups: net.unix
Subject: Re: Re: using libraries with ld (1)
Message-ID: <289@kitty.UUCP>
Date: Fri, 9-Aug-85 13:13:43 EDT
Article-I.D.: kitty.289
Posted: Fri Aug  9 13:13:43 1985
Date-Received: Sat, 10-Aug-85 02:47:50 EDT
References: <240@cmu-cs-h.ARPA>
Organization: Recognition Research Corp., Clarence, NY
Lines: 10

> I was under the impression that libraries specified in the way that mylib.a
> is have the entire library linked in rather than just those routines which
> are needed because of undefined identifiers.  Does anyone know if this is
> actually the case?

Not if the library is built right. (speakin in terms of the pdp-11 linker)
Only those object files containing symbols that have been referenced by
the main program or other modules get loaded. Of course with enough cross
references the whole thing CAN get pulled in. There is no difference thet I
know of in the way mylib.a and /usr/lib/foolib.a are treated.