Re: object size confusion ...

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

 



Brad Petrus wrote:
> When using the size utility on an object file I get a much larger size
> (~4X) reported than when I use the nm utility on the same object file.

This is because by default size utility accumulates sizes of all sections with READONLY and CODE flags into the 'text' value (BFD style). That means text value will either reflect size of sections .rodata, .eh_frame etc.

However some of these sections may not contain symbols at all. Thus nm utility will not enumerate them - that makes the difference.

- Grigory

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux