01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NM (l)<br />

FILES<br />

NM ( l )<br />

-V Print the version of the nm command executing on the<br />

standard error output.<br />

-T By default, nm prints the entire name of the symbols<br />

listed. Since object files can have symbol names with an<br />

arbitrary number of characters, a name that is longer<br />

than the width of the column set aside for names will<br />

overflow its column, forcing every column after the<br />

name to be misaligned. The -T option causes nm to<br />

truncate every name which would otherwise overflow its<br />

column and place an asterisk as the last character in the<br />

displayed name to mark it as truncated.<br />

Options may be used in any order, either singly or in combination,<br />

and may appear anywhere in the command line. Therefore, both<br />

nm name -e -v and nm -ve name print the static and external<br />

symbols sorted by value.<br />

jusrjtmpjnmmm<br />

CAVEATS<br />

When all the symbols are printed, they must be printed in the<br />

order they appear in the symbol table in order to preserve scoping<br />

information. Therefore, the -v and -n options should be used<br />

only in conjunction with the -e option.<br />

SEE ALSO<br />

as(l), cc(l), ld( l), a.out(4), ar(4).<br />

DIAGNOSTICS<br />

"nm: name: cannot open"<br />

if name cannot be read.<br />

"nm: name: bad magic"<br />

if name is not an appropriate common object file.<br />

"nm: name: no symbols"<br />

if the symbols have been stripped from name .<br />

- 2 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!