OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / GNU_binutils / draft / man1 / nm.1
1 .\" Copyright (c) 1991 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .\"
4 .\" Japanese Version Copyright (c) 1997 NAKANO Takeo all rights reserved.
5 .\" Translated Wed Dec 17 1997 by NAKANO Takeo <nakano@@apm.seikei.ac.jp>
6 .\"
7 .TH nm 1 "5 November 1991" "cygnus support" "GNU Development Tools"
8 .de BP
9 .sp
10 .ti \-.2i
11 \(**
12 ..
13
14 .\"O .SH NAME
15 .\"O nm \- list symbols from object files.
16 .SH Ì¾Á°
17 nm \- ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤Î¥·¥ó¥Ü¥ë¤ò¥ê¥¹¥È¤¹¤ë
18
19 .\"O .SH SYNOPSIS
20 .SH ½ñ¼°
21 .hy 0
22 .na
23 .TP
24 .B nm
25 .RB "[\|" \-a | \-\-debug\-syms "\|]" 
26 .RB "[\|" \-g | \-\-extern\-only "\|]"
27 .RB "[\|" \-B "\|]"  
28 .RB "[\|" \-C | \-\-demangle "\|]" 
29 .RB "[\|" \-D | \-\-dynamic "\|]" 
30 .RB "[\|" \-s | \-\-print\-armap "\|]" 
31 .RB "[\|" \-o | \-\-print\-file\-name "\|]"  
32 .RB "[\|" \-n | \-\-numeric\-sort "\|]" 
33 .RB "[\|" \-p | \-\-no\-sort "\|]"
34 .RB "[\|" \-r | \-\-reverse\-sort "\|]" 
35 .RB "[\|" \-\-size\-sort "\|]" 
36 .RB "[\|" \-u | \-\-undefined\-only "\|]"  
37 .RB "[\|" \-l | \-\-line\-numbers "\|]"
38 .RB "[\|" \-\-help "\|]"  
39 .RB "[\|" \-\-version "\|]"  
40 .RB "[\|" "\-t \fIradix" | \-\-radix=\fIradix "\|]"
41 .RB "[\|" \-P | --portability "\|]"
42 .RB "[\|" "\-f \fIformat" | \-\-format=\fIformat "\|]"
43 .RB "[\|" "\-\-target=\fIbfdname" "\|]"
44 .RB "[\|" \c
45 .I objfile\c
46 \&.\|.\|.\|]
47 .ad b
48 .hy 1
49 .\"O .SH DESCRIPTION
50 .SH ÀâÌÀ
51 .\"O GNU \c
52 .\"O .B nm\c
53 .\"O \& lists the symbols from object files \c
54 .\"O .I objfile\c
55 .\"O \&.  If no object files are given as arguments, \c
56 .\"O .B nm\c
57 .\"O \& assumes `\|\c
58 .\"O .B a.out\c
59 .\"O \|'.
60 GNU
61 .B nm
62 ¤Ï¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
63 .I objfile
64 ¤«¤é¥·¥ó¥Ü¥ë¤òÃê½Ð¤·¤Æɽ¼¨¤¹¤ë¡£ °ú¿ô¤Ë¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤¬Í¿¤¨¤é¤ì
65 ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
66 .B a.out
67 ¥Õ¥¡¥¤¥ë¤ËÂФ·¤ÆÆ°ºî¤¹¤ë¡£
68
69 .\"O .SH OPTIONS
70 .SH ¥ª¥×¥·¥ç¥ó
71 .\"O The long and short forms of options, shown here as alternatives, are
72 .\"O equivalent.
73 ¥ª¥×¥·¥ç¥ó¤Ë¤ÏŤ¤·Á¼°¤Èû¤¤·Á¼°¤¬¤¢¤ë¡£Ê¤٤ƽñ¤¤¤Æ¤¢¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤é
74 ¤¬Åù²Á¤Ê¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
75
76 .TP
77 .B \-A
78 .TP
79 .B \-o
80 .TP
81 .B \-\-print\-file\-name 
82 .\"O Precede each symbol by the name of the input file where it was found,
83 .\"O rather than identifying the input file once only before all of its
84 .\"O symbols. 
85 ¤½¤ì¤¾¤ì¤Î¥·¥ó¥Ü¥ë¤ÎÁ°¤Ë¡¢¤½¤Î¥·¥ó¥Ü¥ë¤¬´Þ¤Þ¤ì¤Æ¤¤¤¿ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î̾Á°
86 ¤òÇÛÃÖ¤¹¤ë¡£Ä̾ï¤ÏÆþÎÏ¥Õ¥¡¥¤¥ë¤Ï°ìÅÙ¤À¤±É½¼¨¤·¡¢¤½¤Î¸å¤Ë¤½¤Î¥Õ¥¡¥¤¥ë¤Ë
87 ´Þ¤Þ¤ì¤Æ¤¤¤ë¥·¥ó¥Ü¥ë¤Î°ìÍ÷¤¬Â³¤¯¡£
88  
89 .TP
90 .B \-a
91 .TP
92 .B \-\-debug\-syms 
93 .\"O Display debugger-only symbols; normally these are not listed.
94 ¥Ç¥Ð¥Ã¥¬ÀìÍѤΥ·¥ó¥Ü¥ë¤âɽ¼¨¤¹¤ë¡£¤³¤ì¤é¤ÏÄ̾ï¤Ï¥ê¥¹¥È¤µ¤ì¤Ê¤¤¡£
95  
96 .TP
97 .B \-B
98 .\"O The same as
99 .\"O .B \-\-format=bsd
100 .\"O (for compatibility with the MIPS \fBnm\fP).
101 .B \-\-format=bsd
102 ¤ÈƱ¤¸ (MIPS ¤Î \fBnm\fP ¤È¤Î¸ß´¹À­¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤¿)¡£
103  
104 .TP
105 .B \-C
106 .TP
107 .B \-\-demangle
108 .\"O Decode (\fIdemangle\fP) low-level symbol names into user-level names.
109 .\"O Besides removing any initial underscore prepended by the system, this
110 .\"O makes C++ function names readable.
111 Äã°Ì¥ì¥Ù¥ë¤Î¥·¥ó¥Ü¥ë̾¤ò¥æ¡¼¥¶¡¼¥ì¥Ù¥ë¤Î̾Á°¤Ë¥Ç¥³¡¼¥É 
112 (\fIdemangle\fP) ¤¹¤ë¡£¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤ÆÄɲ䵤줿¡¢ÀèƬÉô¤Î¥¢¥ó¥À¡¼¥¹
113 ¥³¥¢¤òÁ´¤Æºï½ü¤¹¤ë¤Û¤«¡¢ C++ ¤Î´Ø¿ô̾¤ò²ÄÆɤˤ¹¤ë¡£
114
115 .TP
116 .B \-D
117 .TP
118 .B \-\-dynamic
119 .\"O Display the dynamic symbols rather than the normal symbols.  This is
120 .\"O only meaningful for dynamic objects, such as certain types of shared
121 .\"O libraries.
122 Ä̾ï¤Î¥·¥ó¥Ü¥ë¤Ç¤Ï¤Ê¤¯Æ°Åª (dynamic) ¤Ê¥·¥ó¥Ü¥ë¤òɽ¼¨¤¹¤ë¡£¤³¤ì¤Ï¤¢¤ë
123 ¼ï¤Î¶¦Í­¥é¥¤¥Ö¥é¥ê¤Ê¤É¡¢Æ°Åª¤Ê¥ª¥Ö¥¸¥§¥¯¥È¤ËÂФ·¤Æ¤Î¤ß°ÕÌ£¤ò»ý¤Ä¡£
124
125 .TP
126 .B "\-f \fIformat"
127 .\"O Use the output format \fIformat\fP, which can be ``bsd'',
128 .\"O ``sysv'', or ``posix''.  The default is ``bsd''.
129 .\"O Only the first character of \fIformat\fP is significant; it can be
130 .\"O either upper or lower case.
131 ½ÐÎÏ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë \fIformat\fP ¤òÍѤ¤¤ë¡£ \fIformat\fP ¤Ë¤Ï ``bsd''¡¢
132 ``sysv''¡¢ ``posix'' ¤Î¤¤¤º¤ì¤«¤ò»ØÄꤹ¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï ``bsd'' ¤Ç¤¢¤ë¡£
133 \fIformat\fP ¤Çǧ¼±¤µ¤ì¤ë¤Î¤ÏºÇ½é¤Î°ìʸ»ú¤À¤±¤Ç¤¢¤ë¡£Âçʸ»ú¾®Ê¸»ú¤Ï´Ø
134 ·¸¤Ê¤¤¡£
135
136 .TP
137 .B \-g
138 .TP
139 .B \-\-extern\-only 
140 .\"O Display only external symbols.
141 ³°Éô¥·¥ó¥Ü¥ë (external symbol) ¤Î¤ß¤òɽ¼¨¤¹¤ë¡£
142
143 .TP
144 .B \-n
145 .TP
146 .B \-v
147 .TP
148 .B \-\-numeric\-sort 
149 .\"O Sort symbols numerically by their addresses, not alphabetically by their
150 .\"O names. 
151 ¥·¥ó¥Ü¥ë¤ò¥¢¥É¥ì¥¹¤Î¿ôÃͤˤè¤Ã¤Æ¥½¡¼¥È¤¹¤ë¡£Ä̾ï¤Ï̾Á°¤Î¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È
152 ½ç¤Ë¥½¡¼¥È¤µ¤ì¤ë¡£
153  
154 .TP
155 .B \-p
156 .TP
157 .B \-\-no\-sort 
158 .\"O Don't bother to sort the symbols in any order; just print them in the
159 .\"O order encountered.
160 ¥·¥ó¥Ü¥ë¤ò¤Þ¤Ã¤¿¤¯¥½¡¼¥È¤·¤Ê¤¤¡£Ã±½ã¤Ë¸½¤ï¤ì¤¿½ç¤Ëɽ¼¨¤¹¤ë¡£
161  
162 .TP
163 .B \-P
164 .TP
165 .B \-\-portability
166 .\"O Use the POSIX.2 standard output format instead of the default format.
167 .\"O Equivalent to ``\-f posix''.
168 ½ÐÎÏ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¡¢¥Ç¥Õ¥©¥ë¥È¤Î¤â¤Î¤Ç¤Ï¤Ê¤¯ POSIX.2 É¸½à¤Î¤â¤Î¤òÍѤ¤
169 ¤ë¡£ ``-f posix'' ¤ÈÅù²Á¡£
170  
171 .TP
172 .B \-s
173 .TP
174 .B \-\-print\-armap
175 .\"O When listing symbols from archive members, include the index: a mapping
176 .\"O (stored in the archive by \c
177 .\"O .B ar\c
178 .\"O \& or \c
179 .\"O .B ranlib\c
180 .\"O \&) of what modules
181 .\"O contain definitions for what names.
182 ½ñ¸Ë¤Î¥á¥ó¥Ð¡¼¤«¤é¥·¥ó¥Ü¥ë¤ò¥ê¥¹¥È¤¹¤ë¤È¤­¡¢¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò¥¤¥ó¥¯¥ë¡¼¥É
183 ¤¹¤ë¡£¥¤¥ó¥Ç¥Ã¥¯¥¹¤È¤Ï
184 .B ar
185 ¤Þ¤¿¤Ï
186 .B ranlib
187 ¤Ë¤è¤Ã¤Æ½ñ¸Ë¤ËÄɲ䵤ì¤ë¤â¤Î¤Ç¡¢¤½¤Î½ñ¸Ë¤Ë¤¢¤ë¤É¤Î¥Õ¥¡¥¤¥ë¤Ë¤É¤ó¤Ê̾Á°
188 ÄêµÁ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤ò¥Þ¥Ã¥×¤¹¤ë¡£
189
190 .TP
191 .B \-r
192 .TP
193 .B \-\-reverse\-sort 
194 .\"O Reverse the sense of the sort (whether numeric or alphabetic); let the
195 .\"O last come first.
196 ¥½¡¼¥È½ç¤òµÕ¤Ë¤¹¤ë (¿ôÃͤξì¹ç¤Ç¤â¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Î¾ì¹ç¤Ç¤â)¡£ºÇ¸å¤Î
197 ¤â¤Î¤¬ºÇ½é¤ËÍè¤ë¤³¤È¤Ë¤Ê¤ë¡£
198
199 .TP
200 .B \-\-size\-sort 
201 .\"O Sort symbols by size.  The size is computed as the difference between
202 .\"O the value of the symbol and the value of the symbol with the next higher
203 .\"O value.  The size of the symbol is printed, rather than the value.
204 ¥·¥ó¥Ü¥ë¤ò¥µ¥¤¥º¤Î½ç¤Ë¥½¡¼¥È¤¹¤ë¡£¥µ¥¤¥º¤Ï¥·¥ó¥Ü¥ë¤ÎÃͤò¡¢¼¡¤Ë¸½¤ï¤ì¤ë
205 ¥·¥ó¥Ü¥ë¤ÎÃͤ«¤é°ú¤¤¤¿Êª¤Ç¤¢¤ë¡£¥·¥ó¥Ü¥ë¤ÎÃͤǤϤʤ¯¡¢¥µ¥¤¥º¤¬É½¼¨¤µ¤ì¤ë¡£
206
207 .TP
208 .B "\-t \fIradix"
209 .TP
210 .B "\-\-radix=\fIradix"
211 .\"O Use \fIradix\fP as the radix for printing the symbol values.  It must be
212 .\"O ``d'' for decimal, ``o'' for octal, or ``x'' for hexadecimal.
213 \fIradix\fP ¤ò¥·¥ó¥Ü¥ë¤ÎÃͤòɽ¼¨¤¹¤ë¤È¤­¤Î´ð¿ô¤Ë¤¹¤ë¡£ 10 ¿Ê¿ô¤Î¾ì¹ç¤Ï 
214 ``d''¡¢ 8 ¿Ê¿ô¤Ë¤Ï ``o''¡¢ 16 ¿Ê¿ô¤Ë¤Ï ``x'' ¤ò»ØÄꤹ¤ë¡£
215
216 .TP
217 .BI "\-\-target=" "bfdname"
218 .\"O Specify an object code format other than your system's default format.
219 .\"O See 
220 .\"O .BR objdump ( 1 ),
221 .\"O for information on listing available formats.
222 ¥ª¥Ö¥¸¥§¥¯¥È¥³¡¼¥É¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë¡£Ä̾ï¤Ï¥·¥¹¥Æ¥à¤Î¥Ç¥Õ¥©¥ë¥È
223 ¤Ç¤¢¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¬ÍѤ¤¤é¤ì¤ë¡£»ØÄê¤Ç¤­¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë´Ø¤¹¤ë¾ðÊó¤òÆÀ
224 ¤ë¤¿¤á¤Î¼êË¡¤Ë¤Ä¤¤¤Æ¤Ï
225 .BR objdump ( 1 )
226 ¤ò¸«¤è¡£
227
228 .TP
229 .B \-u
230 .TP
231 .B \-\-undefined\-only 
232 .\"O Display only undefined symbols (those external to each object file).
233 ̤ÄêµÁ¤Ê¥·¥ó¥Ü¥ë (¤½¤ì¤¾¤ì¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤Î³°Éô¤Ë¤¢¤ë¤â¤Î) ¤Î¤ß
234 ¤òɽ¼¨¤¹¤ë¡£
235
236 .TP
237 .B \-l
238 .TP
239 .B \-\-line\-numbers
240 .\"O For each symbol, use debugging information to try to find a filename and
241 .\"O line number.  For a defined symbol, look for the line number of the
242 .\"O address of the symbol.  For an undefined symbol, look for the line
243 .\"O number of a relocation entry which refers to the symbol.  If line number
244 .\"O information can be found, print it after the other symbol information.
245 ¤½¤ì¤¾¤ì¤Î¥·¥ó¥Ü¥ë¤ËÂФ·¤Æ¡¢¥Ç¥Ð¥Ã¥°¾ðÊó¤òÍѤ¤¤Æ¥Õ¥¡¥¤¥ë̾¤È¹ÔÈÖ¹æ¤ò¸«
246 ¤Ä¤±¤è¤¦¤È¤¹¤ë¡£ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥·¥ó¥Ü¥ë¤ËÂФ·¤Æ¤Ï¡¢¥·¥ó¥Ü¥ë¤Î¥¢¥É¥ì¥¹¤Î
247 ¹ÔÈÖ¹æ¤òõ¤¹¡£Ì¤ÄêµÁ¤Ê¥·¥ó¥Ü¥ë¤ËÂФ·¤Æ¤Ï¡¢¥·¥ó¥Ü¥ë¤ò»²¾È¤·¤Æ¤¤¤ë¥ê¥í¥±¡¼
248 ¥·¥ç¥ó¥¨¥ó¥È¥ê¤Î¹ÔÈÖ¹æ¤òõ¤¹¡£¹ÔÈÖ¹æ¤Î¾ðÊó¤ò¸«¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤¿¤é¡¢Â¾
249 ¤Î¥·¥ó¥Ü¥ë¤Î¾ðÊó¤Ë³¤¤¤Æ¤½¤ì¤òɽ¼¨¤¹¤ë¡£
250
251 .TP
252 .B \-V
253 .TP
254 .B \-\-version
255 .\"O Show the version number of
256 .\"O .B nm
257 .\"O and exit.
258 .B nm
259 ¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
260
261 .TP
262 .B \-\-help
263 .\"O Show a summary of the options to
264 .\"O .B nm
265 .\"O and exit.
266 .B nm
267 ¤Î¥ª¥×¥·¥ç¥ó°ìÍ÷¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
268
269 .\"O .SH "SEE ALSO"
270 .SH ´ØÏ¢¹àÌÜ
271 .\"O .RB "`\|" binutils "\|'"
272 .\"O entry in 
273 .\"O .B
274 .\"O info\c
275 .\"O \&; 
276 .\"O .I
277 .\"O The GNU Binary Utilities\c
278 .\"O \&, Roland H. Pesch (October 1991);
279 .\"O .BR ar "(" 1 "),"
280 .\"O .BR objdump ( 1 ),
281 .\"O .BR ranlib "(" 1 ")."
282 .B info
283 ¤Î `\fB binutils \fP' ¥¨¥ó¥È¥ê¡¢
284 .IR "The GNU Binary Utilities" ,
285 Roland H. Pesch (October 1991)¡¢
286 .BR ar "(" 1 ")¡¢"
287 .BR objdump "(" 1 ")"
288 .BR ranlib "(" 1 ")"
289
290 .\"O COPYING
291 .SH Ãøºî¸¢
292 .PP
293 Permission is granted to make and distribute verbatim copies of
294 this manual provided the copyright notice and this permission notice
295 are preserved on all copies.
296 .PP
297 Permission is granted to copy and distribute modified versions of this
298 manual under the conditions for verbatim copying, provided that the
299 entire resulting derived work is distributed under the terms of a
300 permission notice identical to this one.
301 .PP
302 Permission is granted to copy and distribute translations of this
303 manual into another language, under the above conditions for modified
304 versions, except that this permission notice may be included in
305 translations approved by the Free Software Foundation instead of in
306 the original English.