09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Programming Commands <strong>XENIX</strong> Programming<br />

n m - Prints name list.<br />

Syntax<br />

nm [ -acgnoOprsSuv ] [ + offset ] [ file 1 ...<br />

Description<br />

nm prints the name list (symbol table) of each object file in the argument list. If an<br />

argument is an archive, a listing for each object file in the archive will be produced. If<br />

no file is given, the symbols in a.out are listed.<br />

Each symbol name is preceded by its value in hexadecimal (blanks if undefined) and one<br />

of the letters U (undefined), A (absolute), T (text segment symbol), D (data segment<br />

symbol), B (bss segment symbol), C (common symbol), or K (80<strong>86</strong>/<strong>2<strong>86</strong></strong> common segment).<br />

If the sym bol table is in segmented format, symbol values are displayed as<br />

segment:offset. If the symbol is local (nonexternal), the type letter is in lowercase.<br />

The output is sorted alphabetically.<br />

Options are<br />

-a Print only absolute symbols.<br />

-c Print only C program symbols (symbols that begin with "_") as they appeared in<br />

the C program.<br />

-g Print only global (external) symbols.<br />

-n Sort numerically rather than alphabetically.<br />

-o Prepend file or archive element name to each output line rather than only once.<br />

-0 Print symbol values in octal.<br />

-p Don't sort; print in symbol-table order.<br />

-r Sort in reverse order.<br />

-s Print 80<strong>86</strong>/<strong>2<strong>86</strong></strong>-executable file symbols as segment:offset.<br />

-s Sort by size of symbol and display each symbol's size instead of value. The last<br />

symbol in each text or data segment may be assigned a size of 0. This option<br />

implies the -n option.<br />

-u Print only undefined symbols.<br />

-v Also describe the object file and symbol table format.<br />

B-94

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

Saved successfully!

Ooh no, something went wrong!