Chapter 3. nm 11
-C
-demangle[=style]
Decode (demangle) low-level symbol names into user-level names. Besides removing any initial
underscore prepended by the system, this makes C++ function names readable. Different compil-
ers have different mangling styles. The optional demangling style argument can be used to choose
an appropriate demangling style for your compiler. Chapter 10 c++filt, for more information on
demangling.
-no-demangle
Do not demangle low-level symbol names. This is the default.
-D
-dynamic
Display the dynamic symbols rather than the normal symbols. This is only meaningful for dy-
namic objects, such as certain types of shared libraries.
-f format
-format=format
Use the output format format, which can be bsd, sysv, or posix. The default is bsd. Only the
first character of format is significant; it can be either upper or lower case.
-g
-extern-only
Display only external symbols.
-l
-line-numbers
For each symbol, use debugging information to try to find a filename and line number. For a
defined symbol, look for the line number of the address of the symbol. For an undefined sym-
bol, look for the line number of a relocation entry which refers to the symbol. If line number
information can be found, print it after the other symbol information.
-n
-v
-numeric-sort
Sort symbols numerically by their addresses, rather than alphabetically by their names.
-p
-no-sort
Do not bother to sort the symbols in any order; print them in the order encountered.
-P
-portability
Use the POSIX.2 standard output format instead of the default format. Equivalent to -f posix.
-S
-print-size
Print size, not the value, of defined symbols for the bsd output format.
Komentarze do niniejszej Instrukcji