Manual / nm
nm(1)
| NM(1) | General Commands Manual | NM(1) |
NAME
nm - print object-file symbols
SYNOPSIS
nm [-ug] file ...
DESCRIPTION
Nm prints the symbol table from the output file of an assembler run. The output is sorted alphabetically. On maux the files must be Merlin-format REL objects. Each line has an address, type letter and name.
- X
- An exported definition (ENT). The address is module-relative.
- U
- An external reference (EXT), undefined in this module.
- -u
- Print only undefined symbols.
- -g
- Print only exported definitions.
The two selections intersect: -ug prints no symbols. More than one operand produces a file-name header for each table. Unlike historical nm, there is no default a.out operand.
FILES
/usr/man/NM this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 on success, 1 for file/format failures, 2 for usage errors.
BUGS
Ordinary private assembler labels are not present in the REL dictionary and cannot be displayed. There is no T/D/B distinction.
| September 19, 2026 | maux |