74 lines
1.7 KiB
HTML
74 lines
1.7 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>nm(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>nm(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
nm - print name list
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>nm</STRONG> [<STRONG>-dgnopru</STRONG>] [<EM>file</EM>] ...
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-d</STRONG> Print the offsets in decimal instead of in hex
|
|
|
|
<STRONG>-g</STRONG> Print only external symbols
|
|
|
|
<STRONG>-n</STRONG> Sort numerically rather than alphabetically
|
|
|
|
<STRONG>-o</STRONG> Prepend file name to each line rather than only once
|
|
|
|
<STRONG>-p</STRONG> Do not sort, print in symbol-table order
|
|
|
|
<STRONG>-r</STRONG> Sort in reverse order
|
|
|
|
<STRONG>-u</STRONG> Print only undefined symbols
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>nm</STRONG> <STRONG>-n</STRONG> <STRONG>a.out</STRONG> # Print all symbols in numerical order
|
|
|
|
<STRONG>nm</STRONG> <STRONG>-dg</STRONG> <STRONG>a.out</STRONG> # Print globals alphabetically in decimal
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Nm</EM> prints the symbol table of executable files when it is available. If
|
|
no file is given, the symbols in <EM>a</EM>.<EM>out</EM> are used. The format of the table
|
|
is somewhat compatible with the one produced by <EM>asld</EM> when used with the
|
|
<STRONG>-s</STRONG> option. The symbol table can be added with <EM>ast</EM>. Assembly language
|
|
files do not have symbol tables.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/anm.1.html">anm(1)</A></STRONG>, <STRONG><A HREF="../man1/asize.1.html">asize(1)</A></STRONG>, <STRONG><A HREF="../man1/ar.1.html">ar(1)</A></STRONG>, <STRONG><A HREF="../man1/size.1.html">size(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|