Table 11 For the 64-bit only syntax

To

Use the option

 

 

Set the code bit for a specified segment.

+c

 

 

Enables or disables lazy swap allocation for dynamically allocated segments (such as

+dz

the stack or heap).

 

 

 

Set the modification bit for a specified segment.

+m

 

 

Set the page size for a specified segment.

+p

 

 

Identify a segment using a segment index number.

+si

 

 

Identify a segment using an address.

+sa

 

 

Use all segments in the file for a set of attribute modifications.

+sall

 

 

Enable lazy swap on a specific segment (using the second command syntax). Do not

+z

use with non-data segments.

 

 

 

Enable run-time dereferencing of null pointers to produce a SIGSEGV signal. (This is

-z

the complement of the -Z option.)

 

 

 

Viewing Symbols in an Object file with nm(1)

The nm command displays the symbol table of each specified object. The file can be a relocatable object file or an executable object file, or an archive of relocatable or executable object files. The nm command provides three general output formats: the default (neither -pnor -Pspecified), -p, and -P. See the nm(1) man page for a detailed description of the output formats.

To

Use the option

 

 

Prefix each output line with the name of the object file or archive file. Equivalent to -r.

-A

 

 

64-bit mode ELF files only: Demangle C++ names before printing them.

-C

 

 

Display the value and size of a symbol in decimal. This is the default for the default format

-d

or the -pformat. Equivalent to -t d.

 

 

 

Display only external and static symbols. This option is ignored (see -f).

-e

 

 

Display full output. This option is in force by default.

-f

 

 

Display only external (global) symbol information.

-g

 

 

Do not display the output header data.

-h

 

 

Distinguish between weak and global symbols by appending * to the key letter of weak

-l

symbols. Only takes effect with -pand/or -P.

 

 

 

Sort symbols by name, in ascending collation order, before they are printed. This is the default.

-n

To turn off this option, use -N.

 

 

 

Display symbols in the order in which they appear in the symbol table.

-N

 

 

Display the value and size of a symbol in octal. Equivalent to -t o.

-o

 

 

Display information in a blank-separated output format. Each symbol name is preceded by

-p

its value (blanks if undefined) and one of the letters. A absolute B bss symbol C common

 

symbol D data symbol R section region S tstorage symbol (32-bit mode SOM files only) If the

 

symbol is local (nonexternal), the type letter is in lowercase. If the symbol is a secondary

 

definition, the type letter is followed by the letter S. Note that -pis not compatible with -P. T

 

text symbol U undefined

 

 

 

Display information in a portable output format to standard output. Note that -pis not

-P

compatible with -P.

 

 

 

32-bit mode SOM files only: Silence some warning messages.

-q

 

 

Viewing Symbols in an Object file with nm(1) 71