From owner-cvs-all Sat Oct 10 02:46:16 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA14868 for cvs-all-outgoing; Sat, 10 Oct 1998 02:46:16 -0700 (PDT) (envelope-from owner-cvs-all) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA14734; Sat, 10 Oct 1998 02:45:01 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.9.1/8.8.5) with SMTP id KAA11500; Sat, 10 Oct 1998 10:44:32 +0100 (BST) Date: Sat, 10 Oct 1998 10:44:32 +0100 (BST) From: Doug Rabson To: Peter Wemm cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern link_aout.c In-Reply-To: <199810092349.QAA07459@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 9 Oct 1998, Peter Wemm wrote: > peter 1998/10/09 16:49:28 PDT > > Modified files: > sys/kern link_aout.c > Log: > Updates for KLD backends. > - symbol_values checks that the symbol is indeed belonging to the > correct symbol and string table pairs before looking up. (since there > could be many pairs, and KLD/DDB need to find out). > - different ops for files versus preload modules - the unload mechanism > is different. (a preloaded module has to be deleted on unload since > the in-core image is tainted by relocation and variables used) > - Do not build an a.out kernel module if we're running on an elf > kernel. :-) Note that it should theoretically be possible to > mix a.out and elf KLD modules providing -mno-underscores was used > to compile it, or some other symbol conversion takes place. > - Support preload modules (even though /boot/loader doesn't yet) > - Search the module path when loading files. Actually link_aout.c already discards the leading underscore when searching symbol tables. This was one of the requirements when I wrote it to allow a transition to ELF without invalidating existing a.out modules. I think John Polstra suggested it originally (it was a long time ago and my memory is fading). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039