From owner-freebsd-arch@FreeBSD.ORG Mon Aug 11 23:55:01 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23C0737B401 for ; Mon, 11 Aug 2003 23:55:01 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DBA943F3F for ; Mon, 11 Aug 2003 23:55:00 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch02.lj.gnf.org [172.25.10.20]) by ns1.gnf.org (8.12.8p1/8.12.8) with ESMTP id h7C6sttF050166 for ; Mon, 11 Aug 2003 23:54:55 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Mon, 11 Aug 2003 23:54:59 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h7C6sxxO012793 for ; Mon, 11 Aug 2003 23:54:59 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h7C6sxqU012792 for arch@FreeBSD.org; Mon, 11 Aug 2003 23:54:59 -0700 (PDT) (envelope-from gtetlow) Date: Mon, 11 Aug 2003 23:54:59 -0700 From: Gordon Tetlow To: arch@FreeBSD.org Message-ID: <20030812065459.GR4672@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HACzHn9G0kmbdSJa" Content-Disposition: inline User-Agent: Mutt/1.4i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-OriginalArrivalTime: 12 Aug 2003 06:54:59.0954 (UTC) FILETIME=[A5D0F520:01C3609E] Subject: CFR: dynamically-linked root patch X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 06:55:01 -0000 --HACzHn9G0kmbdSJa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've put up what I hope to be my final patch for a dynamically linked world. Here's my plan for rolling it into place with as little fuss as possible (hopefully): 1) Add /lib and /libexec to mtree along with the tweaks to rtld-elf to prepend /lib to the search path. Add necessary make-goo to strap /lib into buildworld. 2) Make rtld installed into /libexec with a compatibility symlink in /usr/libexec so existing binaries continue to work. 3) Kick over all the libraries needed to run /bin and /sbin into /lib. Only the versioned binaries will be in /lib, the .so symlink will continue to live in /usr/lib so the toolchain doesn't need to be modified. 4) Add support of a WITH_DYNAMICROOT knob that will make /bin and /sbin dynamic. If things go badly, that's what /rescue is for. 5) Optionally, make WITH_DYANMICROOT default (reverse the logic actually). http://people.freebsd.org/~gordon/patches/dynamic.patch Please look over this patch, if I don't hear any objections or any ideas as to a better way to integrate in order to keep the potential for foot shooting down, I'll start integrating them. -gordon --HACzHn9G0kmbdSJa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/OI9DRu2t9DV9ZfsRAoHHAKCCzUSr7aMjCM5iEhUcdVwtwQm8ygCgkIvL R2p1gpOhQkTqI9fVPhiD3tw= =N8n4 -----END PGP SIGNATURE----- --HACzHn9G0kmbdSJa--