TrumanWong

nm

Display the symbol table of a binary object file

Supplementary instructions

The nm command is used to display the symbol table of a binary object file.

grammar

nm(option)(parameter)

Options

-A: Display the file name before each symbol;
-D: Display dynamic symbols;
-g: only display external symbols;
-r: Display the symbol table in reverse order.

Parameters

Object file: Binary object file, usually library files and executable files.