This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: BSS size
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Subject: Re: BSS size
- From: Joy Mukherjee <jmukherj at csgrad dot cs dot vt dot edu>
- Date: Thu, 1 Nov 2001 22:12:54 -0500 (EST)
- cc: <gcc at gcc dot gnu dot org>
readelf -S works the same way as objdump -h. That does not solve my
problem since .bss does not occupy file space - 'NOBITS'. In that sense my
question was misleading . More directly, how can I find out the no. of
bytes of uninitialised globals in an object file ? Thank you very much for
your help .
Joy
Joy Mukherjee
Graduate Student,
Deptt. of CS,
Virginia Tech,
Blacksburg,VA - 24061.
On Fri, 2 Nov 2001, Bryce McKinlay wrote:
> readelf -S ?
>
> Bryce.
>
> Joy Mukherjee wrote:
>
> >Hi !
> > Can anyone tell me how to get the size of the .bss section for a
> >particular object file ? I want to know the no. of uninitialised globals
> >in that obj file (the obj file is not a final executable). I would greatly
> >appreciate any help . Thanks a lot .
> >
>
>
>