From nobody@FreeBSD.ORG Sun May 30 13:16:54 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B817E14E7B; Sun, 30 May 1999 13:16:54 -0700 (PDT)
Message-Id: <19990530201654.B817E14E7B@hub.freebsd.org>
Date: Sun, 30 May 1999 13:16:54 -0700 (PDT)
From: aron@cs.rice.edu
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: kldload doesn't produce a linked file for the module
X-Send-Pr-Version: www-1.0

>Number:         11947
>Category:       bin
>Synopsis:       kldload doesn't produce a linked file for the module
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 30 15:30:01 PDT 1999
>Closed-Date:    Tue Jun 8 03:34:36 PDT 1999
>Last-Modified:  Tue Jun  8 03:36:10 PDT 1999
>Originator:     Mohit Aron
>Release:        FreeBSD-3.2-Release
>Organization:
Rice University
>Environment:
FreeBSD luzern.cs.rice.edu 3.2-RELEASE FreeBSD 3.2-RELEASE #2: Fri May 28 15:22:48 CDT 1999     aron@luzern.cs.rice.edu:/usr/src/sys/compile/LUZERN  i386
>Description:
The modload command in the earlier lkm interface used to produce
a linker file as a result of the '-o' option. This file used to give
the actual addresses of variables in the module after loading it. This
information was very useful as then the values of variables in the 
module can be read by reading /dev/kmem. Unfortunately, kldload doesn't
produce any such file. Can a similar option be added to kldload so that
it too starts producing this linker file. 

Addresses of variables in the module can be obtained by adding the 
address where the module is loaded (reported by kldstat) to the 
address of the variable in the module (before relocation). However, this
is a cumbersome way and it'll much more convenient to have a linker file
that gives all this information.

>How-To-Repeat:
Load a kld module with kldload and notice that no linker file is produced. 
Load an lkm module with modload and a linker file is put in /tmp (unless
a '-o' option is given). 
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-advocacy->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun May 30 15:31:28 PDT 1999 
Responsible-Changed-Why:  
MIsfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Jun 8 03:34:36 PDT 1999 
State-Changed-Why:  
For questions like this, you want to try mailing the freebsd-questions 
mailing list. You do not need to subscribe for your post to be seen. 
>Unformatted:
