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


size_variant [options]  [objfile…]

Runs on:

QNX Neutrino, Linux, Microsoft Windows


The size_variant depends on the target platform, as follows:

Target platform: size_variant:
ARM ntoarm-size
MIPS ntomips-size
PowerPC ntoppc-size
SH4 ntosh-size
x86 ntox86-size


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: