From owner-freebsd-small Fri Jul 24 03:15:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA06077 for freebsd-small-outgoing; Fri, 24 Jul 1998 03:15:07 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from ns1.tu-graz.ac.at (ns1.tu-graz.ac.at [129.27.2.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA06052 for ; Fri, 24 Jul 1998 03:14:57 -0700 (PDT) (envelope-from dada@localhost.tu-graz.ac.at) Received: from fcggsg07.icg.tu-graz.ac.at by ns1.tu-graz.ac.at with SMTP id AA17681 (5.67c/IDA-1.5t for ); Fri, 24 Jul 1998 12:14:13 +0200 Received: from localhost.tu-graz.ac.at (isdn098.tu-graz.ac.at [129.27.240.98]) by fcggsg07.icg.tu-graz.ac.at (8.8.8/8.8.8) with ESMTP id MAA20595; Fri, 24 Jul 1998 12:14:09 +0200 (MDT) Received: from localhost (localhost.tu-graz.ac.at [127.0.0.1]) by localhost.tu-graz.ac.at (8.8.8/8.8.5) with SMTP id MAA00826; Fri, 24 Jul 1998 12:18:47 +0200 (CEST) Date: Fri, 24 Jul 1998 12:18:47 +0200 (CEST) From: Martin Kammerhofer To: Jerome DE VIVIE Cc: freebsd-small@FreeBSD.ORG Subject: Re: netstat with a kernel.kz In-Reply-To: <199807221602.SAA19838@excalibur.oceanis.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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