Date: Mon, 31 May 1999 14:00:53 -0700 (PDT) From: aron@cs.rice.edu To: freebsd-gnats-submit@freebsd.org Subject: kern/11965: kldload doesn't produce linker file upon loading a module Message-ID: <19990531210053.EDEC214A2E@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 11965 >Category: kern >Synopsis: kldload doesn't produce linker file upon loading a module >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 31 14:10:00 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 he 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. I'm filing this under the "serious" category because I need this functionality for any serious kernel debugging with modules. >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-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990531210053.EDEC214A2E>