Re: Re: mmap info

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

 



Hello Anurag.... Lin...

> 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.

Another possibility is to embed such a functionality directly into your 
program. I can't help further since I know a little about ELF format, 
but you can study the following header files:

/usr/include/asm/elf.h --> on Redhat based distro, it is packaged as 
glibc-kernheaders
/usr/include/libelf.h

I think those headers file might help you to locate the needed sections

hope it helps

regards

Mulyadi


--
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