From owner-freebsd-arch@FreeBSD.ORG Thu May 8 01:02:37 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 C724637B401 for ; Thu, 8 May 2003 01:02:37 -0700 (PDT) Received: from ns2.gnf.org (ns2.gnf.org [63.196.132.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 729D143FB1 for ; Thu, 8 May 2003 01:02:36 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch02.lj.gnf.org [172.25.10.20]) by ns2.gnf.org (8.12.6p2/8.12.3) with ESMTP id h4882U8V057096 for ; Thu, 8 May 2003 01:02:30 -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); Thu, 8 May 2003 01:02:35 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h4882ZSY093218 for ; Thu, 8 May 2003 01:02:35 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h4882YY5093217 for arch@FreeBSD.org; Thu, 8 May 2003 01:02:34 -0700 (PDT) (envelope-from gtetlow) Date: Thu, 8 May 2003 01:02:34 -0700 From: Gordon Tetlow To: arch@FreeBSD.org Message-ID: <20030508080234.GI76376@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VkVuOCYP9O7H3CXI" 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: 08 May 2003 08:02:35.0811 (UTC) FILETIME=[2FA39F30:01C31538] Subject: PATCH: Dynamic /bin support 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: Thu, 08 May 2003 08:02:38 -0000 --VkVuOCYP9O7H3CXI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I just hacked together support to have /bin dynamically linked. This is the first step on the way to having everything play nicely with nectar's work on getting NSS into the system. Here's the patch: http://people.freebsd.org/~gordon/patches/dynamic.patch WARNING: Don't install this on a system you care about, you'll probably hose it beyond belief. My testbed was a pxe booted diskless client. YMMV. Here's the quick instructions: Patch using the diff provided Make a /lib directory Compile and install src/libexec/rtld-elf Make sure it installed into /lib/ld-elf.so.1 with a symlink from /usr/libexec/ld-elf.so.1 Do a full buildworld Build a kernel (not sure if needed) Do an installworld Delete the old libs from /usr/lib, try the following shell script: cd /lib for i in *; do chflags noschg /usr/lib/$i rm /usr/lib/$i done Your /lib should look like: ld-elf.so.1 libc.so.5 libcrypt.so.2 libkvm.so.2 libncurses.so.5 ld-elf.so.1.old libcipher.so.2 libedit.so.4 libm.so.2 libutil.so.3 I've kind of abused SHLIBDIR in the Makefiles. If someone with more make-foo could look it over. I've probably violated style all over the place. Comments are welcome. I'm working on /sbin support, but there are alot of additional libraries that are needed for that one. I'll get to it. Anyway, I'm really tired, but I wanted to post the patch. Please email me with suggestions. -gordon --VkVuOCYP9O7H3CXI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+ug8aRu2t9DV9ZfsRAua1AJ41juQTMYKRwcVXZXwML7BKFc6xWwCfZCvy smw0CcOCE2lFPE0JcGI5yV0= =pT74 -----END PGP SIGNATURE----- --VkVuOCYP9O7H3CXI--