maux
Star on GitHub Buy me a coffee

Manual / nm

nm(1)

NM(1) General Commands Manual NM(1)

nm - print object-file symbols

nm [-ug] file ...

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.

An exported definition (ENT). The address is module-relative.
An external reference (EXT), undefined in this module.
Print only undefined symbols.
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.

/usr/man/NM this page

nas(1), as(1), ld(1), licenses(1)

Exit status is 0 on success, 1 for file/format failures, 2 for usage errors.

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