List section and total sizes for an archive or object file (POSIX)


size_variant [options]  [objfile…]

where size_variant depends on the target platform, as follows:

Target platform size_variant
ARMv7 ntoarmv7-size
x86 ntox86-size

Runs on:

Linux, Microsoft Windows


The size utility lists the section sizes and the total size for each of the object or archive files objfile in its argument list. By default, one line of output is generated for each object file or each module in an archive.

For more information, see the Binutils documentation on the GNU website at

Contributing author: