Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 1999 13:16:54 -0700 (PDT)
From:      aron@cs.rice.edu
To:        freebsd-gnats-submit@freebsd.org
Subject:   advocacy/11947: kldload doesn't produce a linked file for the module
Message-ID:  <19990530201654.B817E14E7B@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         11947
>Category:       advocacy
>Synopsis:       kldload doesn't produce a linked file for the module
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-advocacy
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 30 15:30:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990530201654.B817E14E7B>