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.

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



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

Reply via email to