size.1 (2010 09)

s
size(1) size(1)
NAME
size - print section sizes of object files
SYNOPSIS
size [-d][-o][
-x][-V][-v][-f][-F][-n][
-U] files
DESCRIPTION
size produces section size information for each section in the object files. The size of the text, data and
bss (uninitialized data) sections are printed along with the total size of the object file. If an archive file is
input to the size command, the information for all archive members is displayed.
Options
size recognizes the following options:
-d Print sizes in decimal. This is the default.
-o Print sizes in octal.
-x Print sizes in hexadecimal.
-V Print version information about the
size command.
-v Print a verbose list of the subspaces in the object files. Each subspace is listed on a
separate line with its size, physical address, and virtual address.
-f Print the size of each allocatable section (ELF only).
-F Print the size and permission bits of each loadable segment (ELF only).
-n Print the sizes of non loadable segments or non allocatable sections (ELF only).
-U Print the usage menu.
EXTERNAL INFLUENCES
Environment Variables
The following internationalization variables affect the execution of
size:
LANG
Determines the locale category for native language, local customs and coded character set in the
absence of LC_ALL and other LC_* environment variables. If LANG is not specified or is set to
the empty string, a default of C (see lang (5)) is used instead of LANG.
LC_ALL
Determines the values for all locale categories and has precedence over LANG and other LC_*
environment variables.
LC_MESSAGES
Determines the locale that should be used to affect the format and contents of diagnostic messages
written to standard error.
LC_NUMERIC
Determines the locale category for numeric formatting.
LC_CTYPE
Determines the locale category for character handling functions.
ST_SIZECAT
NLSPATH
Determines the location of message catalogues for the processing of LC_MESSAGES.
If any internationalization variable contains an invalid setting,
size behaves as if all internationaliza-
tion variables are set to C. See environ (5).
International Code Set Support
Single- and multi-byte character code sets are supported.
DIAGNOSTICS
size: name: cannot open name cannot be read.
size: name: bad magic name is not an appropriate object file.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)