Documentation
pdp11-nm
Lists the symbol table of a.out objects, executables, and archives — the 2.9BSD nm.
Lists the symbol table of a.out objects, executables, and archives — the
2.9BSD nm.
pdp11-nm [-g] [-n] [-o] [-p] [-r] [-u] [file ...]
- Reads what the era wrote: 12-byte fixed-name nlist entries, the
16-bit
n_typewith overlay numbers, and__.SYMDEF-bearing archives (the 0177545 magic compares correctly on LP64 via an unsigned-short pin — a real host bug fixed in this revision). - Sorts alphabetically by default;
-nby value,-pin table order,-uundefined only,-gexternals only.
Build and test
make # builds ../../bin/pdp11-nm
make check # covered by tests/binutils/size_nm_strip.sh at the
# repo root
Documentation
- Design — the nlist decoders and the sort/format machinery.
- User guide — the options and the output formats.