From owner-freebsd-hackers Wed Apr 30 19:44:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA01650 for hackers-outgoing; Wed, 30 Apr 1997 19:44:54 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA01614 for ; Wed, 30 Apr 1997 19:44:48 -0700 (PDT) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by who.cdrom.com (8.8.5/8.6.11) with ESMTP id LAA06918 for ; Wed, 30 Apr 1997 11:44:34 -0700 (PDT) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.5/8.8.5) with SMTP id TAA28022; Wed, 30 Apr 1997 19:42:24 +0100 (BST) Date: Wed, 30 Apr 1997 19:42:24 +0100 (BST) From: Doug Rabson To: Chris Csanady cc: Michael Smith , Bruce Evans , hackers@freebsd.org Subject: Re: Unloading LKMs (was Re: A Desparate Plea for Help...) In-Reply-To: <199704301635.LAA23173@nyx.pr.mcs.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 30 Apr 1997, Chris Csanady wrote: > > >The important point is that there is *no difference* between the dynamic > >and statically loaded version of a driver. I can go into a > >/sys/compile/FOO directory and construct loadable modules from the same > >object files. > > How about a statically loaded version of the kernel? I mean, will it now > be nothing more than an aggregate of some modules? It would be nice if > all there were were modules, and to make yourself a kernel, you just > had to stick them together.. That is almost what I have right now. The only difference between the object file for a statically linked driver and the object file for a dynamically linked driver is this command: ld -Bshareable -o filename.so filename.o -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891