From owner-freebsd-hackers Fri Apr 4 12:29:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA01750 for hackers-outgoing; Fri, 4 Apr 1997 12:29:02 -0800 (PST) Received: from sumatra.americantv.com (sumatra.americantv.com [199.184.181.250]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA01741 for ; Fri, 4 Apr 1997 12:28:57 -0800 (PST) Received: from right.PCS (right.pcs. [148.105.10.31]) by sumatra.americantv.com (8.7.6/8.7.3) with ESMTP id OAA05328; Fri, 4 Apr 1997 14:35:31 -0600 (CST) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id OAA25445; Fri, 4 Apr 1997 14:29:57 -0600 Message-ID: <19970404142957.41778@right.PCS> Date: Fri, 4 Apr 1997 14:29:57 -0600 From: Jonathan Lemon To: John Polstra Cc: smc@servtech.com, hackers@FreeBSD.ORG Subject: Re: FreeBSD Elf-Kit and dynamic loading References: <5i0j1d$jtk@news.itfs.nsk.su> <19970403191209.52889@keltia.freenix.fr> <5i2k5h$4jb@news.itfs.nsk.su> <334525B9.167EB0E7@servtech.com> <199704041835.KAA24555@austin.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <199704041835.KAA24555@austin.polstra.com>; from John Polstra on Apr 04, 1997 at 10:35:07AM -0800 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Apr 04, 1997 at 10:35:07AM -0800, John Polstra wrote: > > Now suppose you add a new version of the library, "libc.so.4". You > change the symlink "libc.so" to point to the new version. Things > work out the way they should. Existing executables that were linked > against libc.so.3 still will use that same library, because the > versioned name is recorded in them. When you build new programs, > though, they'll use the newest library, because that's where the > unversioned symlink points now. > > I didn't invent it. I just implemented it. :-) My first reaction: "Oh, yuck. You mean I have to remember to update a symlink whenever I put in a new version of the shared libraries?!" My second reaction: "Oh, good. Now I have a way of dealing with certain l^Husers who insist on having a libc.so.261 on some systems." I guess there are benefits to this approach. -- Jonathan