From owner-freebsd-hackers Sun May 7 14:43:40 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 95B5237BA67 for ; Sun, 7 May 2000 14:43:36 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id OAA02984; Sun, 7 May 2000 14:43:34 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id OAA61439; Sun, 7 May 2000 14:43:33 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Sun, 7 May 2000 14:43:33 -0700 (PDT) Message-Id: <200005072143.OAA61439@vashon.polstra.com> To: adsharma@sharmas.dhs.org Reply-To: hackers@freebsd.org Subject: Re: Lazy binding In-Reply-To: <20000505233142.A27312@sharmas.dhs.org> References: <20000505233142.A27312@sharmas.dhs.org> Organization: Polstra & Co., Seattle, WA Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <20000505233142.A27312@sharmas.dhs.org>, Arun Sharma wrote: > Is there a strong reason why FreeBSD rtld uses lazy binding by default ? 1. Faster start-up times for programs. 2. Better interversion library compatibility. It doesn't matter if a function is missing from a library, as long as the program never calls it at runtime. 3. It's what everybody else has always done by default. I.e., it's what users expect. > In a multithreaded environment, this could make things pretty complex. > What if a thread holds locks and fails at runtime due to a missing > symbol ? *shrug* The same thing that happens if a thread holds locks and fails for any other reason. > Also, is there a significant performance benefit to doing lazy binding ? Start-up time is faster. Overall runtime might be faster or slower, depending on the ratio of called functions to total functions. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message