.\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)nm.1 8.1 (Berkeley) 6/6/93 .\" %Id: nm.1,v 1.4.2.2 1997/08/01 06:33:52 charnier Exp % .\" jpman %Id: nm.1,v 1.2 1997/05/17 16:01:54 horikawa Stab % .\" .Dd June 6, 1993 .Dt NM 1 .Os BSD 4 .Sh 名称 .Nm nm .Nd 名前リスト (シンボルテーブル) を表示する .Sh 書式 .Nm .Op Fl agnoprtuwW .Op Ar .Sh 解説 .Nm は、指定された各 .Ar file 内のオブジェクトのシンボルテーブル (名前リスト) を 表示します。ライブラリ (アーカイブ) が指定されると、 .Nm はアーカイブされた各オブジェクトメンバのリストを表示します。 .Ar file が指定されなければ、 .Nm は .Pa a.out ファイルを探索し、存在すれば .Pa a.out ファイルのシンボルテーブルを表示します。 .Bl -tag -width flag .It Fl a デバッガ用に挿入されているシンボルテーブルを表示します。 .It Fl g 外部参照 (グローバル) シンボルのみを表示します。 .It Fl n 数値順に表示します。 .It Fl o オブジェクトのフルパス名またはライブラリ名を各行に表示します。 .It Fl p ソートを行いません。 .It Fl r 逆順にソートします。 .It Fl t 要約プログラムにとってより適した表形式で出力します。 .It Fl u 未定義シンボルのみを表示します。 .It Fl w アーカイブ中のオブジェクトではないメンバーについての警告を表示します。 通常 .Nm は、オブジェクトファイルではないアーカイブのメンバーを無視し 警告を出しません。 .It Fl W 弱いシンボルを表す ``W'' のためのカラムを含めて出力します。 .El .Pp 各シンボル名にはその値 (未定義シンボルの場合は空欄) と、以下のうちの一文字が続きます。 .Pp .Bl -tag -width Ds -compact -offset indent .It Fl デバッガのためのシンボルテーブル ( .Fl a オプション参照) .It Li A 絶対値シンボル .It Li B bss セグメントシンボル .It Li C コモンシンボル .It Li D データセグメントシンボル .It Li f ファイル名 .It Li I 間接参照シンボル .It Li T テキストセグメントシンボル .It Li U 未定義シンボル .It Li W 次のシンボルが参照されると警告 .El .Pp シンボルがローカル (外部定義ではない) ならば、上記の文字は小文字で表示 されます。出力はアルファベット順にソートされます。 .Sh 関連項目 .Xr ar 1 , .Xr a.out 5 , .Xr ar 5 , .Xr stab 5 .Sh 歴史 .Nm コマンドは .At v1 に登場しました。