From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 20 21:31:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04F7416A41F; Tue, 20 Dec 2005 21:31:35 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-3-1-cust208.cdif.cable.ntl.com [82.31.78.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CEB443D53; Tue, 20 Dec 2005 21:31:33 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1Eop51-000PkP-PI; Tue, 20 Dec 2005 21:31:31 +0000 Date: Tue, 20 Dec 2005 21:31:31 +0000 From: Ceri Davies To: John Baldwin Message-ID: <20051220213131.GA20540@submonkey.net> Mail-Followup-To: Ceri Davies , John Baldwin , freebsd-hackers@freebsd.org References: <20051220114121.GA58620@submonkey.net> <200512201029.28699.jhb@freebsd.org> <20051220155821.GG68989@submonkey.net> <200512201343.59668.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <200512201343.59668.jhb@freebsd.org> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.11 Sender: Ceri Davies Cc: freebsd-hackers@freebsd.org Subject: Re: Mostly static binaries with crunchgen X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 21:31:35 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 20, 2005 at 01:43:58PM -0500, John Baldwin wrote: > On Tuesday 20 December 2005 10:58 am, Ceri Davies wrote: > > On Tue, Dec 20, 2005 at 10:29:27AM -0500, John Baldwin wrote: > > > The other concern is does this force the entire crunch to require a > > > working rtld now? If so, that would mean that this wouldn't be > > > appropriate for something such as /rescue. If there were a way to > > > statically link rtld into the crunch itself that would probably be id= eal, > > > but I'm not sure that is possible. > > > > No, just the dynamic bits require rtld. >=20 > So you can still run /foo without rtld being present if foo doesn't need= =20 > dlopen, etc.? It looks like you link the crunch with -o dynamic, so isn'= t=20 > the kernel going to complain when you try to exec it that it can't find r= tld=20 > if rtld is missing? (Think about /rescue if your rtld is hosed and/or=20 > missing.) Sorry, you're correct of course. It's still useful in Adrian's environment at least (because he puts rtld on an MFS). Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDqHgzocfcwTS3JF8RAsofAJ0c9UM6XYN2Q+XbuiwPwI/q63SiYgCbBbrA WB4jRPjC1QeyS7GComxghc8= =J4Js -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--