# Object file symbols The object file symbols utility lists the symbols in the specified executable files, object files, or object library files. If no input files are specified, the utility attempts to read from `a.out`. Note This utility returns zero on success, or greater than zero if an error occurs. ## Command To start the object files symbols utility from the command line: hexagon-nm [] [] Copy to clipboard Where <option> is one or more of the following: --debug-syms | -a --defined-only --dynamic | -D -e -f --format= | -F -B -P -o -g --help | -h --no-sort | -p --numeric-sort | -n | -v --print-armap | -s --print-file-name | -A --print-size | -S --radix= | -t -x --reverse-sort | -r --size-sort --undefined-only | -u --version | -V Copy to clipboard ## Options --debug-syms -a Copy to clipboard Display all symbols, including debugger-only symbols. --defined-only Copy to clipboard Display only defined symbols. --dynamic -D Copy to clipboard Display only dynamic symbols. This option is meaningful only for shared libraries. -e Display information only for global and static symbols. Copy to clipboard -f Copy to clipboard Display full output. (Default) --format= -F Copy to clipboard Display output in the specified format. The possible values are: - `bsd` - BSD (Default) - `sysv` - System V - `posix` - POSIX -B Copy to clipboard Equivalent to `--format=bsd`. -P Copy to clipboard Equivalent to `--format=posix`. -o Copy to clipboard If POSIX output was specified (using `-F posix` or `-P`), this option is equivalent to `--radix=o`. If POSIX output was not specified, it is equivalent to `--print-file-name`. -g Copy to clipboard Display information only for global (external) symbols. --help -h Copy to clipboard Display the command usage information and then exit. --no-sort -p Copy to clipboard Do not sort symbols. --numeric-sort -n -v Copy to clipboard Sort symbols numerically by address instead of alphabetically by name. --print-armap -s Copy to clipboard For archives, include the index of the archive’s members. --print-file-name -A Copy to clipboard Write the full path name or library name of an object on each line, before the rest of the information for a symbol. If this option is not specified, the utility identifies an input file only once, before its symbols are listed. --print-size -S Copy to clipboard Print the size of each symbol instead of its value. --radix= -t Copy to clipboard Print numeric values using the specified radix. The possible values are: - `d` - Decimal (Default) - `o` - Octal - `x` - Hexadecimal -x Copy to clipboard Write numeric values in hexadecimal (equivalent to `-t x`). --reverse-sort -r Copy to clipboard Reverse the order of the sort. --size-sort Copy to clipboard Sort symbols by size instead of alphabetically by name. --undefined-only -u Copy to clipboard Display only undefined symbols. --version -V Copy to clipboard Display the utility version identifier and then exit. ## Output formats The object file symbols utility can display information in a number of formats, numeric radices, and sort orders. By default it uses BSD-style output, hexadecimal radix, no alphabetic sorting by name, and no name demangling. For each symbol listed, the utility presents the following information: - The library or object name (if `-A` or `--print-file-name` were specified) - The symbol name - The symbol type (denoted by a single character): - `A` - Global absolute symbol - `B` - Global bss symbol (uninitialized data) - `C` - Common symbol (representing uninitialized data) - `D` - Global symbol naming initialized data - `N` - Debugger symbol - `R` - Read-only data symbol - `T` - Global text symbol - `U` - Undefined symbol - `V` - Weak object - `W` - Weak reference - `a` - Local absolute symbol - `b` - Local bss symbol (uninitialized data) - `d` - Local data symbol - `t` - Local text symbol - `v` - Weak object that is undefined - `w` - Weak symbol that is undefined - `?` - None of the above - The symbol value - The symbol size (if applicable) Last Published: Oct 06, 2026 [Previous Topic Examples](https://docs.qualcomm.com/bundle/publicresource/80-N3040-23/topics/archiver.md) [Next Topic Command](https://docs.qualcomm.com/bundle/publicresource/80-N3040-23/topics/object-file-copier.md)