how to get "the big picture" with nm, objdump, size for object size?
Mike Frysinger
vapier@gentoo.org
Fri Sep 24 21:16:00 GMT 2010
On Friday, September 24, 2010 16:58:03 Ilya Murav'jov wrote:
> I am trying to decrease the object size for my C++ code with nm, size
> and objdump. The 'size' command gives me
> $ size my_obj.o
> text data bss dec hex filename
> 143576 72 208 143856 231f0 my_obj.o
> just 143kb which is much less than real file size (which is 1,6Mb).
>
> So, how can I get what sections occupy so many space? I am sure they
> are debugging symbols and something else; so, how can I sum up numbers
> from output of the tools to get something like 1,6Mb? Googling didn't help.
use `readelf -S` and `readelf -s` to view section & symbol info
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100924/03051191/attachment.sig>
More information about the Binutils
mailing list