Caution: This version of this document is no longer maintained. For the latest documentation, see


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 detailed documentation, see the GNU website at

Contributing author: