NM(1) GNU Development Tools NM(1) (NAME) nm - (SYNOPSIS) nm [-A|-o|--print-file-name] [-a|--debug-syms] [-B|--format=bsd] [-C|--demangle[=style]] [-D|--dynamic] [-fformat|--format=format] [-g|--extern-only] [-h|--help] [--ifunc-chars=CHARS] [-j|--format=just-symbols] [-l|--line-numbers] [--inlines] [-n|-v|--numeric-sort] [-P|--portability] [-p|--no-sort] [-r|--reverse-sort] [-S|--print-size] [-s|--print-armap] [-t radix|--radix=radix] [-u|--undefined-only] [-U|--defined-only] [-V|--version] [-W|--no-weak] [-X 32_64] [--no-demangle] [--no-recurse-limit|--recurse-limit]] [--plugin name] [--size-sort] [--special-syms] [--synthetic] [--target=bfdname] [--unicode=method] [--with-symbol-versions] [--without-symbol-versions] [objfile...] (DESCRIPTION) nm objfile... . nm a.out . nm : o (radix) ( ) (). o . . (local) (global/external) . ("u" "v" "w"). "A" (absolute) . "B" "b" BSS . . "C" "c" (common) . . . . c (small commons) . "D" "d" (initialized data section) . "G" "g" . int . "i" PE DLL . ELF (indirect function) . ELF . (relocation) . . - --ifunc-chars . . . "I" . "N" (debugging symbol) . "n" . "p" (stack unwind section) . "R" "r" (read-only data section) . "S" "s" . "T" "t" (text section) . "U" (undefined) . "u" (unique global symbol) . ELF . . "V" "v" (weak object) . . . . "W" "w" (weak symbol) . . . . "-" stabs a.out . other stabs desc stabs stab. stabs . "?" . o . . @ foo@VER_1. @ foo@@VER_2. (OPTIONS) . -A -o --print-file-name ( ) . -a --debug-syms . -B --format=bsd ( MIPS nm). -C --demangle[=style] (demangle) . (underscore) ++C . . . --no-demangle . . --recurse-limit --no-recurse-limit --recursion-limit --no-recursion-limit . . . . . -D --dynamic . (shared libraries) . -f format --format=format format "bsd" "sysv" "posix" "just-symbols" . "bsd" . format . -g --extern-only (external) . -h --help nm . --ifunc-chars=CHARS nm "i" . --ifunc-chars . . -j --format=just-symbols. -l --line-numbers . . (relocation entry) . . --inlines -l (inlined) . "main" "callee1" "callee2" "callee2" "callee1" "main" . -n -v --numeric-sort . -p --no-sort . -P --portability POSIX.2 . -f posix. -r --reverse-sort ( ) . -S --print-size "bsd". --size-sort . -s --print-armap : ( ar ranlib) . -t radix --radix=radix radix . d o x . -u --undefined-only ( ). . -U --defined-only . . -V --version nm . -X AIX nm . 32_64 . nm AIX -X 32 nm . --plugin name name . . --plugin nm ${libdir}/bfd-plugins . -plugin ld . nm ${libdir}/bfd-plugins . GCC liblto_plugin.so.0.0.0 . Clang LLVMgold.so . GCC (backwards compatible) . --size-sort . ELF ELF . "bsd" -S . - --undefined-only . --special-syms . . ARM ARM THUMB . --synthetic (synthetic symbols) . . . --unicode=[default|invalid|locale|escape|hex|highlight] UTF-8 . (--unicode=default) . --unicode=locale . --unicode=hex --unicode=invalid . --unicode=escape (\uxxxx) --unicode=highlight ( ) . . -W --no-weak (weak symbols). --with-symbol-versions --without-symbol-versions . @ foo@VER_1. @ foo@@VER_2. . --target=bfdname . @file file. @file . file . file . . ( ) . file @file . (SEE ALSO) ar(1) objdump(1) ranlib(1) Info binutils. (COPYRIGHT) (C) - (Free Software Foundation, Inc.) (GNU Free Documentation License) . . "GNU Free Documentation License" . binutils-2.47 2026-07-30 NM(1)