Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 1998 10:44:32 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Peter Wemm <peter@freebsd.org>
Cc:        cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/kern link_aout.c
Message-ID:  <Pine.BSF.4.01.9810101041430.416-100000@herring.nlsystems.com>
In-Reply-To: <199810092349.QAA07459@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9810101041430.416-100000>