107 lines · 1.6 KB · Text
RawDownload
.TH NM 1.SH NAMEnm \- name list (symbol table).SH SYNOPSIS.B nm[.B -aghnsTu].I file ....SH DESCRIPTION.I Nmprints the name list of each executable or object.I filein the argument list.If the.I fileis an archive(see.IR ar (1)),the name list of each file in the archive is printed.If more than one file is given in the argument list,the name of each file is printed at the beginning of each line..PPEach symbol name is preceded by its hexadecimalvalue (blanks if undefined)and one of the letters.TP.B Ttext segment symbol.PD0.TP.B tstatic text segment symbol.TP.B Lleaf function text segment symbol.TP.B lstatic leaf function text segment symbol.TP.B Ddata segment symbol.TP.B dstatic data segment symbol.TP.B Bbss segment symbol.TP.B bstatic bss segment symbol.TP.B aautomatic (local) variable symbol.TP.B pfunction parameter symbol.TP.B zsource file name.TP.B Zsource file line offset.TP.B fsource file name components.PD.PPThe output is sorted alphabetically..PPOptions are:.TP.B -aPrint all symbols; normally only user-defined text, data,and bss segment symbols are printed..TP.B -gPrint only global.RB ( T ,.BR L ,.BR D ,.BR B )symbols..TP.B -hDo not print file name headers with output lines..TP.B -nSort according to the address of the symbols..TP.B -sDon't sort; print in symbol-table order..TP.B -TPrefix each line with the symbol's type signature..TP.B -uPrint only undefined symbols..SH SOURCE.B /sys/src/cmd/nm.c.SH SEE ALSO.IR ar (1),.IR 2l (1), .IR db (1),.IR acid (1),.IR a.out (6)