From owner-freebsd-ports Wed Feb 28 10:15:29 2001 Delivered-To: freebsd-ports@freebsd.org Received: from blizzard.sabbo.net (ns.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id CC70337B719; Wed, 28 Feb 2001 10:14:49 -0800 (PST) (envelope-from max@vic.sabbo.net) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.112]) by blizzard.sabbo.net (8.10.1/8.10.1) with ESMTP id f1SIDng07330; Wed, 28 Feb 2001 20:13:56 +0200 Received: (from max@localhost) by vic.sabbo.net (8.11.2/8.11.2) id f1SIDkR54747; Wed, 28 Feb 2001 20:13:46 +0200 (EET) (envelope-from sobomax@FreeBSD.org) From: Maxim Sobolev Message-Id: <200102281813.f1SIDkR54747@vic.sabbo.net> Subject: Re: ksh93 To: n@nectar.com (Jacques A. Vidrine) Date: Wed, 28 Feb 2001 20:12:33 +0200 (EET) Cc: obrien@FreeBSD.org (David O'Brien), sobomax@FreeBSD.org (Maxim Sobolev), naddy@mips.inka.de (Christian Weisgerber), steve@FreeBSD.org (Steve Price), freebsd-ports@FreeBSD.org In-Reply-To: <20010228112329.A9192@hamlet.nectar.com> from "Jacques A. Vidrine" at Feb 28, 2001 11:23:29 AM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > On Wed, Feb 28, 2001 at 09:16:30AM -0800, David O'Brien wrote: > > On Wed, Feb 28, 2001 at 03:09:02PM +0200, Maxim Sobolev wrote: > > > Idea: why not to create dynamic executable, but explicitly link static > > > versions of required libs (cc -o foo foo.o bar.o /usr/lib/libc.a ...) > > > into it? The resulting executable will be protected against breakage of > > > system libs, while still able to use dl*() functions. > > Well, ld.so could still break, and anyway you'd lose the ability to Probability of ld.so breakage is quite low, much lower than any of the base libs, therefore it could be a resonable middle ground. IMO there could be 2 options: middle-case applicable in the most cases (i.e. dynamic executable linked against static libs) and fully dynamic executable for those who want to overload standard functions. Of course there could be third ege case (fully static binary) for those too paranoid... Just my US$0.02. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message