From owner-freebsd-questions Mon Jan 4 15:49:41 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA24176 for freebsd-questions-outgoing; Mon, 4 Jan 1999 15:49:41 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from us.checkpoint.com (oak.us.checkpoint.com [206.86.35.94]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA24168 for ; Mon, 4 Jan 1999 15:49:40 -0800 (PST) (envelope-from sgoldsto@us.checkpoint.com) Received: from dunwich.us.checkpoint.com (dunwich.us.checkpoint.com [206.86.35.242]) by us.checkpoint.com (8.9.1/8.9.1/CPoak/1.3.3) with SMTP id PAA03387 for ; Mon, 4 Jan 1999 15:49:09 -0800 (PST) Message-ID: <008f01be383c$7c45e060$f22356ce@dunwich.us.checkpoint.com> From: "Steve Goldstone" To: Subject: Patching variable in kernel loadable modules Date: Mon, 4 Jan 1999 15:46:43 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_008C_01BE37F9.6D83EF60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_008C_01BE37F9.6D83EF60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a freebsd kernel loadable module and I need to modify a specific = global initialization variable for a few customer sites. Is there a = utility that does this? It needs to: 1. Load the binary image; 2. Look up the variable in the symbol table; 3. Retrieve the variable's offset in the binary file; 4. Apply a numeric value to the offset; 5. Write out the binary image to a disk file. If such a utility isn't available, is there documentation on the format = of the kernel module so I can write my own utility? Thanks, Steve ------=_NextPart_000_008C_01BE37F9.6D83EF60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I have a freebsd kernel loadable module and I = need to=20 modify a specific global initialization variable for a few customer = sites. =20 Is there a utility that does this?  It needs to:
 
1.  Load the binary image;
2.  Look up the variable in the symbol=20 table;
3.  Retrieve the variable's = offset in the=20 binary file;
4.  Apply a numeric value to the=20 offset;
5.  Write out the binary image to a disk file.
 
If such a utility isn't available, is there documentation on the = format of=20 the kernel module so I can write my own utility?
 
Thanks,
 
Steve
------=_NextPart_000_008C_01BE37F9.6D83EF60-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message