NM(1) | MidnightBSD General Commands Manual | NM(1) |
nm
— display
symbolic information in object files
nm |
[--debug-syms ]
[--defined-only ]
[--demangle [=style]]
[--dynamic ]
[--extern-only ] [--help ]
[--line-numbers ]
[--no-demangle ]
[--no-sort ]
[--numeric-sort ]
[--print-armap ]
[--print-file-name ]
[--print-size ]
[--radix= format]
[--reverse-sort ]
[--size-sort ]
[--undefined-only ]
[--version ] [-A ]
[-B ] [-C
[style]] [-D ]
[-P ] [-V ]
[-a ] [-e ]
[-g ] [-h ]
[-l ] [-n ]
[-o ] [-p ]
[-r ] [-S ]
[-s ] [-t
format] [-u ]
[-x ] file ... |
The nm
utility displays symbolic
information in the object files, executables, and object library files named
by its arguments. Lack of symbolic information in an otherwise valid input
file, is not considered to be an error. If no files are specified on the
command line, nm
will attempt to read
a.out.
The nm
utility recognizes the following
options:
--debug-syms
--defined-only
--demangle
[=style]--dynamic
--extern-only
--help
--format
=format--line-numbers
--no-demangle
--no-sort
--numeric-sort
--print-armap
--print-file-name
nm
will only identify an input file once, before
its symbols are listed.--print-size
--radix
=radix--reverse-sort
--size-sort
--undefined-only
--version
nm
and
exit.-A
--print-file-name
.-B
--format=
bsd.-C
[style]--demangle
[=style].-D
--dynamic
.-F
format--format
=format.-P
--format
=posix.-S
--print-size
.-V
--version
.-a
--debug-syms
.-e
-f
-g
--extern-only
.-h
--help
.-l
--line-numbers
.-n
--numeric-sort
.-o
-F
posix or -P
options, this
option is equivalent to specifying
--radix
=‘o’.
If POSIX output was not specified, this option acts as a synonym for the
--print-file-name
option.-p
--no-sort
.-v
-n
.-r
--reverse-sort
-s
--print-armap
.-t
radix--radix=
radix.-u
--undefined-only
.-x
The nm
utility can present its information
in a number of formats, numeric radices and sort orders. By default
nm
uses BSD style output, a hexadecimal radix,
without output sorted alphabetically by name and without demangling of
names.
For each symbol listed, nm
presents the
following information:
-A
or
--print-file-name
were specified.-l
or --line-numbers
were
specified.The nm
utility exits 0 on success,
and >0 if an error occurs.
The nm
utility and this manual page were
written by Hyogeol Lee
<hyogeollee@gmail.com>.
September 13, 2017 | midnightbsd-3.1 |