Usage: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/nm [option(s)] [file(s)]
List symbols in [file(s)] (a.out by default).
The options are:
-a, --debug-syms Display debugger-only symbols
-A, --print-file-name Print name of the input file before every symbol
-B Same as --format=bsd
-C, --demangle[=STYLE] Decode mangled/processed symbol names
STYLE can be "none", "auto", "gnu-v3", "java",
"gnat", "dlang", "rust"
--no-demangle Do not demangle low-level symbol names
--recurse-limit Enable a demangling recursion limit. (default)
--no-recurse-limit Disable a demangling recursion limit.
-D, --dynamic Display dynamic symbols instead of normal symbols
-e (ignored)
-f, --format=FORMAT Use the output format FORMAT. FORMAT can be `bsd',
`sysv', `posix' or 'just-symbols'.
The default is `bsd'
-g, --extern-only Display only external symbols
--ifunc-chars=CHARS Characters to use when displaying ifunc symbols
-j, --just-symbols Same as --format=just-symbols
-l, --line-numbers Use debugging information to find a filename and
line number for each symbol
-n, --numeric-sort Sort symbols numerically by address
-o Same as -A
-p, --no-sort Do not sort the symbols
-P, --portability Same as --format=posix
-r, --reverse-sort Reverse the sense of the sort
--plugin NAME Load the specified plugin
-S, --print-size Print size of defined symbols
-s, --print-armap Include index for symbols from archive members
--quiet Suppress "no symbols" diagnostic
--size-sort Sort symbols by size
--special-syms Include special symbols in the output
--synthetic Display synthetic symbols as well
-t, --radix=RADIX Use RADIX for printing symbol values
--target=BFDNAME Specify the target object format as BFDNAME
-u, --undefined-only Display only undefined symbols
-U, --defined-only Display only defined symbols
--unicode={default|show|invalid|hex|escape|highlight}
Specify how to treat UTF-8 encoded unicode characters
-W, --no-weak Ignore weak symbols
--without-symbol-versions Do not display version strings after symbol names
-X 32_64 (ignored)
@FILE Read options from FILE
-h, --help Display this information
-V, --version Display this program's version number
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/nm: supported targets: elf64-x86-64 elf32-i386 elf32-x86-64 pei-i386 pe-x86-64 pei-x86-64 elf64-little elf64-big elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
Report bugs to <https://sourceware.org/bugzilla/>.
Options (34)
| Option | Description | Source |
|---|
-a, --debug-syms | Display debugger-only symbols | help |
-A, --print-file-name | Print name of the input file before every symbol | help |
-B | Same as --format=bsd | help |
--no-demangle | Do not demangle low-level symbol names | help |
--recurse-limit | Enable a demangling recursion limit. | help |
-D, --dynamic | Display dynamic symbols instead of normal symbols | help |
-e | (ignored) | help |
-f, --format FORMAT | Use the output format FORMAT. | help |
-g, --extern-only | Display only external symbols | help |
--ifunc-chars CHARS | Characters to use when displaying ifunc symbols | help |
-j, --just-symbols | Same as --format=just-symbols | help |
-l, --line-numbers | Use debugging information to find a filename and line number for each symbol | help |
-n, --numeric-sort | Sort symbols numerically by address | help |
-o | Same as -A | help |
-p, --no-sort | Do not sort the symbols | help |
-P, --portability | Same as --format=posix | help |
-r, --reverse-sort | Reverse the sense of the sort | help |
--plugin NAME | Load the specified plugin | help |
-S, --print-size | Print size of defined symbols | help |
-s, --print-armap | Include index for symbols from archive members | help |
--quiet | Suppress "no symbols" diagnostic | help |
--size-sort | Sort symbols by size | help |
--special-syms | Include special symbols in the output | help |
--synthetic | Display synthetic symbols as well | help |
-t, --radix RADIX | Use RADIX for printing symbol values | help |
--target BFDNAME | Specify the target object format as BFDNAME | help |
-u, --undefined-only | Display only undefined symbols | help |
-U, --defined-only | Display only defined symbols | help |
--unicode | Specify how to treat UTF-8 encoded unicode characters | help |
-W, --no-weak | Ignore weak symbols | help |
--without-symbol-versions | Do not display version strings after symbol names | help |
-X 32_64 | (ignored) | help |
-h, --help | Display this information | help |
-V, --version | Display this program's version number | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.