tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: crash dump module sections addresses
In article <33813164-f469-41e0-bceb-4a2d14557d66%softinengines.com@localhost>,
Beesdeckar <beesdeckar%softinengines.com@localhost> 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
Home |
Main Index |
Thread Index |
Old Index