size(1) on Solnix vs Linux and the BSDs
On Solnix, size is the illumos size at /usr/bin/size, which reports text, data and bss segment (or section) sizes and their total, and documents no output format or column layout. Its -F and -n have no counterpart elsewhere, GNU size ignores its -f, and it has no -t, -d or --format.
The manual pages
What Solnix runs
/usr/bin/size is the illumos size; no other illumos variants are shipped. GNU size is available from pkgs.solnix.binutils, installed as gsize; its page calls it size.
Differences
| Compared with | Topic | What differs |
|---|---|---|
| Linux | same program as gsize | The gsize from pkgs.solnix.binutils has the same synopsis and options as the Linux size page: it is the same program, GNU size. Linux scripts that use --format, --radix, -t or --totals need gsize on Solnix, not /usr/bin/size.Source: Solnix gsize(1) from pkgs.solnix.binutils SYNOPSIS, OPTIONS; Linux size(1) SYNOPSIS, OPTIONS |
| Linux, FreeBSD | output format | The Solnix page describes segment sizes (non-writable file size, writable file size, writable memory minus file size) but no output layout. Linux and FreeBSD show a text/data/bss/dec/hex line; do not assume /usr/bin/size prints it.Source: illumos size(1) DESCRIPTION; Linux size(1) -B; FreeBSD size(1) --format |
| Linux, FreeBSD | format selection | Solnix /usr/bin/size has no -A, -B, -G or --format. Linux picks sysv (-A), berkeley (-B) or GNU (-G) output, and FreeBSD picks sysv (-A), berkeley (-B) or darwin (-m) with --format. Solnix -f, -F and -n select what is listed instead.Source: illumos size(1) SYNOPSIS; Linux size(1) -A, -B, -G, --format; FreeBSD size(1) -A, -B, -m, --format |
| Linux | -f meaning | On Solnix, -f prints each allocatable section's size, name and the total. In Linux (GNU) size, -f is ignored.Source: illumos size(1) -f; Linux size(1) -f |
| Linux, FreeBSD, OpenBSD | -F and -n are Solnix-only | Solnix -F lists loadable segment sizes with permission flags. -n adds non-loadable segments or non-allocatable sections. None of the Linux, FreeBSD or OpenBSD pages has either flag.Source: illumos size(1) -F, -n; Linux size(1) OPTIONS; FreeBSD size(1) OPTIONS; OpenBSD size(1) DESCRIPTION |
| Linux, FreeBSD | -d and --radix | Solnix has -o (octal) and -x (hexadecimal) but no -d and no --radix. Linux and FreeBSD document -d, -o, -x and --radix (8, 10, 16); Linux says the total is always given in two radices, decimal and hexadecimal for -x.Source: illumos size(1) -o, -x; Linux size(1) -d, -o, -x, --radix; FreeBSD size(1) -d, --radix |
| Linux, FreeBSD, OpenBSD | -t totals | Solnix size has no -t. Linux, FreeBSD and OpenBSD can print a totals line for all files processed.Source: illumos size(1) SYNOPSIS; Linux size(1) -t; FreeBSD size(1) --totals; OpenBSD size(1) -t |
| Linux, FreeBSD, OpenBSD | no file argument | Solnix synopsis requires at least one filename. Linux, FreeBSD and OpenBSD use a.out when no file is given. Source: illumos size(1) SYNOPSIS; Linux size(1) DESCRIPTION; FreeBSD size(1) DESCRIPTION; OpenBSD size(1) DESCRIPTION |
| FreeBSD | -V | Solnix -V prints version information on standard error. FreeBSD size documents only --version, with no -V.Source: illumos size(1) -V; FreeBSD size(1) --version |
| FreeBSD | reading standard input | FreeBSD (llvm-size) reads a file from standard input when given -. The Solnix /usr/bin/size page does not document -.Source: FreeBSD size(1) DESCRIPTION; illumos size(1) SYNOPSIS |
| OpenBSD | -w and archive members | OpenBSD -w warns about non-object archive members, which are otherwise ignored. Solnix has no -w. Its page does not say how non-object archive members are handled.Source: OpenBSD size(1) -w; illumos size(1) DESCRIPTION |
Everyday tasks
| Task | Solnix | Linux | FreeBSD | OpenBSD |
|---|---|---|---|---|
| show text, data and bss sizes of an object file | size filename | size objfile | llvm-size input | size file |
| list each section by name with its size | size -f filename | size -A objfile | llvm-size -A input | — |
| print sizes in hexadecimal | size -x filename | size -x objfile | llvm-size -x input | — |
Standards
- POSIX: size is not a POSIX.1-2024 utility.
Writing portable scripts
- Do not parse size output across systems: Linux and FreeBSD describe a Berkeley-style text/data/bss/dec/hex line, OpenBSD describes the three segment sizes and their sum, and the illumos page documents no layout.
- If you need the GNU or Berkeley layout on Solnix, call gsize (pkgs.solnix.binutils) explicitly instead of size.
- Do not parse size
-oor-xoutput across systems: Solnix prints numbers in octal or hexadecimal instead of decimal, GNU size always gives the total in two radices, and OpenBSD has neither flag.
Every difference here is taken from the manual pages linked above: Solnix's published page, Linux (man-pages and the GNU and util-linux manuals), FreeBSD, OpenBSD and NetBSD. Each row names its source. Where a manual is silent, this page is too. Compiled 2026-10-26. Found a mistake? Mail hackers@lists.solnix.io.