HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

n
nm(1) nm(1)
"%s[%s]:\n", file, object-file
EXTERNAL INFLUENCES
Environment Variables
The following internationalization variables affect the execution of
nm:
LANG determines the locale category for native language, local customs and coded character set in the
absence of LC_ALL or other LC_* environment variables. If
LANG is not specified or is null, it defaults to
C (see lang(5)).
LC_ALL, if set to a nonempty string value, determines the values for all locale categories and has pre-
cedence over LANG and other LC_* environment variables.
LC_COLLATE determines the locale category for character collation.
LC_CTYPE determines the locale category for character handling functions.
LC_MESSAGES determines the locale that should be used to affect the format and contents of diagnostic
messages written to standard error.
LC_NUMERIC determines the locale category for numeric formatting.
ST_NMCAT and NLSPATH determine the location of message catalogues for processing LC_MESSAGES .
If an internationalization variable is not specified or is null, it defaults to the value of
LANG.
If
LANG is not specified or is null, it defaults to C (see lang(5)).
If any internationalization variable contains an invalid setting, then all internationalization variables
default to
C (see environ(5)).
International Code Set Support
Single-byte character code sets are supported.
EXAMPLES
Display which object files have undefined references for the symbol leap:
nm -rup *.o | grep leap
Display which object files have a definition for the text symbol leap:
nm -rp *.o | awk ’{ if ($3 == "T" && $4 == "leap") { print $0 } }’
WARNINGS
By default, nm now sorts symbols by name (the -n option). To turn off sorting, use the
-N option.
Some options added for standards conformance duplicate the functionality of options that previously
existed. This duplication has been retained for backward compatibility.
SEE ALSO
System Tools
cc_bundled(1) HP-UX C compiler
ld(1) Link editor
Miscellaneous
crt0(3) Execution startup routine
end(3C) Symbol of the last locations in program
STANDARDS CONFORMANCE
nm: SVID2, SVID3, XPG2, XPG3, XPG4
Section 1654 Hewlett-Packard Company 4 HP-UX 11i Version 1: September 2005