Re: crash dump module sections addresses

[email protected] (Christos Zoulas)
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
In article <[email protected]>,
Beesdeckar  <[email protected]> wrote:
>On 27-Mar-25 10:22 AM, Paul Goyette wrote:
>> See src/sys/kern/subr_kobj.c (kern_module.c which calls some of
>> the kobj routines.)
>
>I looked on it. If I want to retrieve .text module base address I found that
>modctl() is able to provide .text base address of kernel module to 
>userspace and utility modstat -k can display it.
>But when I want to retrieve .data base address I found only kobj 
>routines usable in kernel space which can retrieve kobj_t corresponding 
>to kernel module and it contains also member with .data base address, or 
>I found it also like address of first global variable when I list nm 
>/dev/ksyms and look where is beginning of kernel module.
>
>Does not exist any command line utility or ddb command which can provide 
>list of elf sections with addresses of kernel module ? Or does not exist 
>any simple kernel routine which can retrieve section addresses from 
>insine of loaded module ? Or is it not present somewhere in /proc or /dev ?

It would help if you explained what are you trying to do?

christos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.