Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 1998 12:18:47 +0200 (CEST)
From:      Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
To:        Jerome DE VIVIE <jerome@DotCom.FR>
Cc:        freebsd-small@FreeBSD.ORG
Subject:   Re: netstat with a kernel.kz
Message-ID:  <Pine.BSF.3.95.980724120212.499B-100000@localhost.tu-graz.ac.at>
In-Reply-To: <199807221602.SAA19838@excalibur.oceanis.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 22 Jul 1998, Jerome DE VIVIE wrote:

> Hi,
> 
> I have to put up a very small system which need kernel symbols. I use 
>
[snip]
> 
> Is it possible ? and how ?
> 

If your API is nlist(3) you're lucky. I also needed some kernel symbols
on a floppy booted system and solved that problem.
You simply add all the symbols you need to
/usr/src/sys/i386/i386/symbols.raw, restrict the kernel symbol list to
those symbols (with symorder -t), and strip of everything but the symbols
from the kernel. The last step need's a patch to strip(1) because it's
just the opposite of what strip is usually good for.
You also need a patched symorder(1) binary, because option -t does not
work :(
I have sent you all the files you need in private email.

No changes to programs accessing those symbols are required,
but of course they can get only symbols from the list "symbols.raw".

I haven't used the kvm(3) interface. So if you use that YMMV.

HTH,
  Martin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message



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