Subcommands (2)
Options (4)
-g, --extern-onlybooleanList global (extern) functions in a file (prefixed with T)
Example:
nm {{[-g|--extern-only]}} {{path/to/file.o}}-u, --undefined-onlybooleanList only undefined symbols in a file
Example:
nm {{[-u|--undefined-only]}} {{path/to/file.o}}-a, --debug-symsbooleanList all symbols, even debugging symbols
Example:
nm {{[-a|--debug-syms]}} {{path/to/file.o}}-C, --demanglebooleanDemangle C++ symbols (make them readable)
Example:
nm {{[-C|--demangle]}} {{path/to/file.o}}Examples (4)
List global (extern) functions in a file (prefixed with T)
nm [-g|--extern-only] path/to/file.oList only undefined symbols in a file
nm [-u|--undefined-only] path/to/file.oList all symbols, even debugging symbols
nm [-a|--debug-syms] path/to/file.oDemangle C++ symbols (make them readable)
nm [-C|--demangle] path/to/file.omade by @shridhargupta | data from tldr-pages