Re: examine bss and data segments

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

 



Priya (snailkarma@xxxxxxxxx) wrote:
> How can I find out if a variable is in the data  or bss segment from
> the vmlinux image?
> Apologies if an obvious question. :(
> 
> thanks,

It should have a really better solution, but I think you could find it
with readelf.

objdump -t vmlinux

or more funny : 

readelf -S vmlinuz to locate the section.
And readelf -s vmlinux | grep ".*: cxyv.*$"

Perhaps I say mistakes ;)

	~Christophe


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