On 07-Feb-00 Bruce Evans wrote:
> On Mon, 7 Feb 2000, Ruslan Ermilov wrote:
> 
>> If I boot the system without loader(8), e.g. with /boot.config=kernel,
>> or by interrupting boot blocks and typing /kernel, swapinfo(8) fails:
>> 
>> swapinfo: undefined symbol: _numvnodes
> 
> This is because the elf format puts static symbols in an out-of-the-way
> section, and the boot2 stage of the bootstrap loads sections naively.
> Static symbols end up in a place where the kernel linker can't find
> them.  `numvnodes' is a static symbol...  Global symbols are found
> correctly.

So all that needs to be fixed is for boot2.c to be more intelligent with ELF
images then?

> This bug has affected ddb for more than a year.  I don't believe in
> or use loader(8), and have "fixed" the problem in ddb by not using
> the kernel linker for ddb symbol lookup.  This also fixes the
> nonexistence of ddb symbols on booting with -d.
> 
> Bruce

-- 

John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to