nm [
|
-a
--debug-syms
[
] [
|
-B
-C
--demangle
[
|
-S
--print-size
[
|
|
-A
-o
--print-file-name
[
|
|
-n
-v
--numeric-sort
[
|
-r
--reverse-sort
[
|
-t radix
--radix=radix
[
--target=bfdname
[
--defined-only
[
|
-V
--version
gnu
lists the symbols from object files
nm
assumes the file
a.out
For each symbol,
nm
The symbol value, in the radix selected by options (see below), or hexadecimal by default.
•
The symbol type. At least the following types are used; others are, as well, depending on the object
•
file format. If lowercase, the symbol is local; if uppercase, the symbol is global (external).
A
The symbol's value is absolute, and will not be changed by further linking.
B
The symbol is in the uninitialized data section (known as BSS).
C
The symbol is common. Common symbols are uninitialized data. When linking, multiple com-
mon symbols may appear with the same name. If the symbol is defined anywhere, the common
symbols are treated as undefined references. For more details on common symbols, see the dis-
cussion of -warn-common in .
D
The symbol is in the initialized data section.
G
The symbol is in an initialized data section for small objects. Some object file formats permit
more efficient access to small data objects, such as a global int variable as opposed to a large
global array.
I
The symbol is an indirect reference to another symbol. This is a gnu extension to the
object file format that is rarely used.
] [
|
-g
--extern-only
[=
]] [
style
] [
|
-s
--print-armap
]
] [
|
-p
--no-sort
] [
--size-sort
] [
|
-P
] [
|
-fformat
] [
|
-l
--line-numbers
] [
] [
-X 32_64
--help
.
shows:
]
|
]
-D
--dynamic
]
]
] [
|
-u
--undefined-only
]
--portability
]
--format=format
] [
--no-demangle
]
[
...]
objfile
. . . . If no object files are listed as arguments,
objfile
Chapter 3.
]
]
nm
nm
a.out
Need help?
Do you have a question about the ENTERPRISE LINUX 3 - USING BINUTILS and is the answer not in the manual?
Questions and answers