Date: Thu, 8 May 2003 01:02:34 -0700 From: Gordon Tetlow <gordont@gnf.org> To: arch@FreeBSD.org Subject: PATCH: Dynamic /bin support Message-ID: <20030508080234.GI76376@roark.gnf.org>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030508080234.GI76376>