Re: mmap info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 21 Jul 2005 10:57:57 +0530, srinivas bakki wrote
> > So u mean to say, if i know the offset then i can reach up that location.
> > How can i know the offset of my .kernel section in my running program.
> > Thanks
> > Anurag
> >
> 
> well, this again boils down to your original question :) . you cannot
> know the offset of the section while you are running (dynamically).
> well i have a doubt. this .kernel section is in the file you are
> mapping right ?
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/

Hi,

You can try "readelf -S your_binary" to dump section information.
If you still want to know where your .kernel is at run time, gdb might help. 
Use "maint info sections" to dump section information in debugger.

HTH,
Roach


--
Open WebMail Project (http://openwebmail.org)


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux