1 .\" Copyright (c) 1991, 93, 94, 95, 96, 1997 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
4 .\" Japanese Version Copyright (c) 1997-2000 NAKANO Takeo all rights reserved.
5 .\" Translated Mon Jan 5 1998 by NAKANO Takeo <nakano@@apm.seikei.ac.jp>
6 .\" Updated Fri 27 Oct 2000 by NAKANO Takeo
8 .TH objcopy 1 "October 1994" "cygnus support" "GNU Development Tools"
16 .\"O objcopy \- copy and translate object files
18 objcopy \- ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤äÊÑ´¹¤ò¹Ô¤¦
26 .RB "[\|" \-F\ \fIbfdname\fR\ |\ \fB\-\-target=\fIbfdname\fR "\|]"
27 .RB "[\|" \-I\ \fIbfdname\fR\ |\ \fB\-\-input\-target=\fIbfdname\fR "\|]"
28 .RB "[\|" \-O\ \fIbfdname\fR\ |\ \fB\-\-output\-target=\fIbfdname\fR "\|]"
29 .RB "[\|" \-R\ \fIsectionname\fR\ |\ \fB\-\-remove\-section=\fIsectionname\fR "\|]"
30 .RB "[\|" \-S\fR\ |\ \fB\-\-strip\-all\fR "\|]"
31 .RB "[\|" \-g\fR\ |\ \fB\-\-strip\-debug\fR "\|]"
32 .RB "[\|" \-\-strip\-unneeded\fR "\|]"
33 .RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]"
34 .RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]"
35 .RB "[\|" \-L\ \fIsymbolname\fR\ |\ \fB\-\-localize\-symbol=\fIsymbolname\fR "\|]"
36 .RB "[\|" \-W\ \fIsymbolname\fR\ |\ \fB\-\-weaken\-symbol=\fIsymbolname\fR "\|]"
37 .RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all\fR "\|]"
38 .RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals\fR "\|]"
39 .RB "[\|" \-b\ \fIbyte\fR\ |\ \fB\-\-byte=\fIbyte\fR "\|]"
40 .RB "[\|" \-i\ \fIinterleave\fR\ |\ \fB\-\-interleave=\fIinterleave\fR "\|]"
41 .RB "[\|" \-p\fR\ |\ \fB\-\-preserve\-dates\fR "\|]"
42 .RB "[\|" \-\-debugging "\|]"
43 .RB "[\|" \-\-gap\-fill=\fIval\fR "\|]"
44 .RB "[\|" \-\-pad\-to=\fIaddress\fR "\|]"
45 .RB "[\|" \-\-set\-start=\fIval\fR "\|]"
46 .RB "[\|" \-\-adjust\-start=\fIincr\fR "\|]"
47 .RB "[\|" \-\-adjust\-vma=\fIincr\fR "\|]"
48 .RB "[\|" \-\-adjust\-section\-vma=\fIsection{=,+,-}val\fR "\|]"
49 .RB "[\|" \-\-adjust\-warnings\fR "\|]"
50 .RB "[\|" \-\-no\-adjust\-warnings\fR "\|]"
51 .RB "[\|" \-\-set\-section\-flags=\fIsection=flags\fR "\|]"
52 .RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]"
53 .RB "[\|" \-\-change\-leading\-char\fR "\|]"
54 .RB "[\|" \-\-remove\-leading\-char\fR "\|]"
55 .RB "[\|" \-\-weaken\fR "\|]"
56 .RB "[\|" \-v\ |\ \-\-verbose\fR "\|]"
57 .RB "[\|" \-V\ |\ \-\-version\fR "\|]"
58 .RB "[\|" \-\-help\fR "\|]"
60 .RB "[\|" outfile\fR "\|]"
65 .\"O utility copies the contents of an object file to another.
67 .\"O uses the GNU BFD Library to read and write the object files. It can
68 .\"O write the destination object file in a format different from that of
69 .\"O the source object file. The exact behavior of
71 .\"O is controlled by command-line options.
74 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòÊÌ¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¡£
76 ¤Ï¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤ÎÆɤ߽ñ¤¤Ë GNU BFD ¥é¥¤¥Ö¥é¥ê¤òÍѤ¤¤ë¡£¤³¤ì¤Ë
77 ¤è¤Ã¤Æ½ñ¤¹þ¤ßÀè¤Î¥Õ¥¡¥¤¥ë¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤òÆɤ߹þ¤ß¥Õ¥¡¥¤¥ë
78 ¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤«¤éÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£
80 ¤Î¾ÜºÙ¤ÊÆ°ºî¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ·èÄꤵ¤ì¤ë¡£
83 .\"O creates temporary files to do its translations and deletes them
86 .\"O uses BFD to do all its translation work; it knows about all the
87 .\"O formats BFD knows about, and thus is able to recognize most formats
88 .\"O without being told explicitly.
90 ¤ÏÊÑ´¹¤ò¹Ô¤¦ºÝ¤Ë°ì»þ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¢Æ°ºî¸å¤Ë¤³¤ì¤ò¾Ãµî¤¹¤ë¡£
92 ÊÑ´¹ºî¶È¤Ï¤¹¤Ù¤Æ BFD ¤Ë¤è¤Ã¤Æ¹Ô¤ï¤ì¤ë¡£¤·¤¿¤¬¤Ã¤Æ BFD ¤¬¼ï¡¹¤Î¥Õ¥©¡¼
93 ¥Þ¥Ã¥È¤Ë´Ø¤·¤Æ»ý¤Ã¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¾ðÊó¤òÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤¡¢ÌÀ¼¨¤·¤Ê¤¤¤Ç
94 ¤â¤Û¤È¤ó¤É¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤òǧ¼±¤Ç¤¤ë¡£
97 .\"O can be used to generate S-records by using an output target of
106 ¤È¤¹¤ë) ¤³¤È¤Ë¤è¤Ã¤Æ S-record ¤òÀ¸À®¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
109 .\"O can be used to generate a raw binary file by using an output target of
115 .\"O generates a raw binary file, it will essentially produce a memory dump
116 .\"O of the contents of the input object file. All symbols and relocation
117 .\"O information will be discarded. The memory dump will start at the
118 .\"O virtual address of the lowest section copied into the output file.
124 ¤È¤¹¤ë) ¤³¤È¤Ë¤è¤Ã¤Æ raw ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£¤³¤Î
125 ºÝ¤Ë¤Ï¡¢´ðËÜŪ¤Ë¤ÏÆþÎÏ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤ÎÆâÍƤΥá¥â¥ê¥À¥ó¥×¤¬ºî¤é¤ì
126 ¤ë¡£¥á¥â¥ê¥À¥ó¥×¤Ï½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤µ¤ì¤ëºÇÄñ°Ì¤Î¥»¥¯¥·¥ç¥ó¤Î²¾ÁÛ¥¢
127 ¥É¥ì¥¹¤«¤é¥¹¥¿¡¼¥È¤¹¤ë¡£
129 .\"O When generating an S-record or a raw binary file, it may be helpful to
132 .\"O to remove sections containing debugging information. In some cases
134 .\"O will be useful to remove sections which contain information which is
135 .\"O not needed by the binary file.
136 S-record ¤ä raw ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¾ì¹ç¤Ë
138 ¤òÍѤ¤¤ì¤Ð¡¢¥Ç¥Ð¥Ã¥°¾ðÊó¤ò»ý¤Ä¥»¥¯¥·¥ç¥ó¤òºï½ü¤Ç¤¤ë¡£¤Þ¤¿¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡
139 ¥¤¥ë¤ËÉÔÍפʾðÊó¤ò»ý¤Ã¤¿¥»¥¯¥·¥ç¥ó¤ò¾Ãµî¤¹¤ë¤Î¤Ë
141 ¤¬Ìò¤ËΩ¤Ä¾ì¹ç¤â¤¢¤ë¡£
146 .\"O are the source and output files respectively. If you do not specify
149 .\"O creates a temporary file and destructively renames the result with the
150 .\"O name of the input file.
154 ¤Ï¤½¤ì¤¾¤ìÆþÎÏ¡¦½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¡£
158 ¤Ï°ì»þ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¢¤½¤Î·ë²Ì¤òÆþÎÏ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ë¥ê¥Í¡¼¥à¤¹¤ë (¤¹
159 ¤Ê¤ï¤Á¤â¤È¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤ÏÇ˲õ¤µ¤ì¤ë)¡£
163 .B \-I \fIbfdname\fR, \fB\-\-input\-target=\fIbfdname
164 .\"O Consider the source file's object format to be
166 .\"O rather than attempting to deduce it.
167 ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤ò
169 ¤È¤·¤Æ¼è¤ê°·¤¦¡£Ä̾ï¤Ï¼«Æ°Åª¤Ëǧ¼±¤¹¤ë¡£
171 .B \-O \fIbfdname\fR, \fB\-\-output\-target=\fIbfdname
172 .\"O Write the output file using the object format
174 ½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤ò
178 .B \-F \fIbfdname\fR, \fB\-\-target=\fIbfdname
181 .\"O as the object format for both the input and the output file; i.e.
182 .\"O simply transfer data from source to destination with no translation.
183 Æþ½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë
185 ¤òÍѤ¤¤ë¡£¤¹¤Ê¤ï¤ÁÆþÎÏ¥Õ¥¡¥¤¥ë¤òÊÑ´¹¤»¤º¤Ëñ¤Ë½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¡£
187 .B \-R \fIsectionname\fR, \fB\-\-remove-section=\fIsectionname
188 .\"O Remove the named section from the file. This option may be given more
189 .\"O than once. Note that using this option inappropriately may make the
190 .\"O output file unusable.
191 »ØÄꤷ¤¿¥»¥¯¥·¥ç¥ó¤ò¥Õ¥¡¥¤¥ë¤«¤éºï½ü¤¹¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏÊ£¿ô²ó»ØÄꤹ
192 ¤ë¤³¤È¤¬¤Ç¤¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¸í¤Ã¤ÆÍѤ¤¤ë¤È¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤¬ÌòΩ¤¿¤º
195 .B \-S\fR, \fB\-\-strip\-all
196 .\"O Do not copy relocation and symbol information from the source file.
197 ¥ê¥í¥±¡¼¥·¥ç¥ó¾ðÊó¤È¥·¥ó¥Ü¥ë¾ðÊó¤òÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é¥³¥Ô¡¼¤·¤Ê¤¤¡£
199 .B \-g\fR, \fB\-\-strip\-debug
200 .\"O Do not copy debugging symbols from the source file.
201 ¥Ç¥Ð¥Ã¥°¥·¥ó¥Ü¥ë¤òÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é¥³¥Ô¡¼¤·¤Ê¤¤¡£
203 .B \-\-strip\-unneeded
204 .\"O Strip all symbols that are not needed for relocation processing.
205 ¥ê¥í¥±¡¼¥·¥ç¥ó½èÍý¤ËÉÔÍפʥ·¥ó¥Ü¥ë¤ò¤¹¤Ù¤Æ¼è¤êµî¤ë¡£
207 .B \-K \fIsymbolname\fR, \fB\-\-keep\-symbol=\fIsymbolname
208 .\"O Copy only symbol \fIsymbolname\fP from the source file. This option
209 .\"O may be given more than once.
210 ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é \fIsymbolname\fP ¤È¤¤¤¦Ì¾Á°¤Î¥·¥ó¥Ü¥ë¤À¤±¤ò¥³¥Ô¡¼¤¹¤ë¡£
213 .B \-N \fIsymbolname\fR, \fB\-\-strip\-symbol=\fIsymbolname
214 .\"O Do not copy symbol \fIsymbolname\fP from the source file. This option
215 .\"O may be given more than once.
216 ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î \fIsymbolname\fP ¤È¤¤¤¦Ì¾Á°¤Î¥·¥ó¥Ü¥ë¤ò¥³¥Ô¡¼¤·¤Ê¤¤¡£
219 .B \-L \fIsymbolname\fR, \fB\-\-localize\-symbol=\fIsymbolname
220 .\"O Make symbol \fIsymbolname\fP local to the file, so that it is not
221 .\"O visible externally. This option may be given more than once.
223 ¤ò¤½¤Î¥Õ¥¡¥¤¥ë¤Ë¥í¡¼¥«¥ë¤Ê¤â¤Î¤Ë¤·¡¢³°Éô¤«¤é¸«¤¨¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡£
226 .B \-W \fIsymbolname\fR, \fB\-\-weaken\-symbol=\fIsymbolname
227 .\"O Make symbol \fIsymbolname\fP weak. This option may be given more than once.
232 .B \-x\fR, \fB \-\-discard\-all
233 .\"O Do not copy non-global symbols from the source file.
234 ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î¥°¥í¡¼¥Ð¥ë¤Ç¤Ê¤¤¥·¥ó¥Ü¥ë¤Ï¥³¥Ô¡¼¤·¤Ê¤¤¡£
236 .B \-X\fR, \fB\-\-discard\-locals
237 .\"O Do not copy compiler-generated local symbols. (These usually start
238 .\"O with "L" or ".").
239 ¥³¥ó¥Ñ¥¤¥é¤¬À¸À®¤·¤¿¥í¡¼¥«¥ë¤Ê¥·¥ó¥Ü¥ë (Ä̾ï "L" ¤Þ¤¿¤Ï
240 "." ¤Ç¤Ï¤¸¤Þ¤ë¥·¥ó¥Ü¥ë) ¤Ï¥³¥Ô¡¼¤·¤Ê¤¤¡£
242 .B \-b \fIbyte\fR, \fB\-\-byte=\fIbyte
243 .\"O Keep only every \fIbyte\fPth byte of the input file (header data is
244 .\"O not affected). \fIbyte\fP can be in the range from 0 to the
245 .\"O interleave-1. This option is useful for creating files to program
246 .\"O ROMs. It is typically used with an srec output target.
247 ÆþÎÏ¥Õ¥¡¥¤¥ë¤ò interleave ¤Å¤Ä¶èÀڤ俳ƥ»¥¯¥·¥ç¥ó¤«¤é \fIbyte\fP ¥Ð¥¤
248 ¥ÈÌܤÀ¤±¤ò¥³¥Ô¡¼¤¹¤ë (¥Ø¥Ã¥À¥Ç¡¼¥¿¤Ï±Æ¶Á¤µ¤ì¤Ê¤¤)¡£ \fIbyte\fP ¤ÎÈϰϤÏ
249 0 ¤«¤é interleave-1 ¤Þ¤Ç¤Ç¤¢¤ë¡£ \fIinterleave\fP ¤ÎÃͤÏ
250 .BR \-i "(¤Þ¤¿¤Ï" \-\-interleave ")"
251 ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤹ¤ë¡£
252 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï ROM ¥×¥í¥°¥é¥àÍѤΥե¡¥¤¥ë¤òºîÀ®¤¹¤ë¤È¤¤ËÊØÍø¤Ç¤¢¤ë¡£½Ð
253 ÎÏ¥¿¡¼¥²¥Ã¥È srec ¤È¶¦¤ËÍѤ¤¤é¤ì¤ë¤³¤È¤¬Â¿¤¤¡£
255 .B \-i \fIinterleave\fR, \fB\-\-interleave=\fIinterleave
256 .\"O Only copy one out of every \fIinterleave\fP bytes. Which one to copy is
257 .\"O selected by the \fB\-b\fP or \fB\-\-byte\fP option. The default is 4.
258 .\"O The interleave is ignored if neither \fB\-b\fP nor \fB\-\-byte\fP is given.
259 \fIinterleave\fP ¥Ð¥¤¥È¤Ë¤Ä¤ 1 ¥Ð¥¤¥È¤Å¤Ä¤ò¥³¥Ô¡¼¤¹¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ï 4
260 ¤Ç¤¢¤ë¡£²¿ÈÖÌܤΥХ¤¥È¤ò¥³¥Ô¡¼¤¹¤ë¤«¤Ï
261 .BR \-b "(¤Þ¤¿¤Ï" \-\-byte
262 ) ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤹ¤ë¡£ \fB\-b\fP ¤â \fB\-\-bytes\fP ¤â»ØÄꤵ¤ì¤Ê¤«¤Ã
263 ¤¿¾ì¹ç¤Ï interleave ¤Ï̵»ë¤µ¤ì¤ë¡£
265 .B \-p\fR, \fB\-\-preserve\-dates
266 .\"O Set the access and modification dates of the output file to be the same
267 .\"O as those of the input file.
268 ½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹»þ¹ï¤È½¤Àµ»þ¹ï¤òÆþÎÏ¥Õ¥¡¥¤¥ë¤ÈƱ¤¸¤Ë¤¹¤ë¡£
271 .\"O Convert debugging information, if possible. This is not the default
272 .\"O because only certain debugging formats are supported, and the
273 .\"O conversion process can be time consuming.
274 ²Äǽ¤Ê¤é¤Ð¥Ç¥Ð¥Ã¥°¾ðÊó¤òÊÑ´¹¤¹¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Õ¥©¥ë¥È¤Ë¤Ï¤Ê¤Ã¤Æ
275 ¤¤¤Ê¤¤¡£¤¹¤Ù¤Æ¤Î¥Ç¥Ð¥Ã¥°¥Õ¥©¡¼¥Þ¥Ã¥È¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¤·¡¢
276 ¤³¤ÎÊÑ´¹¤Ë¤Ï»þ´Ö¤¬¤«¤«¤ë¤«¤é¤Ç¤¢¤ë¡£
278 .B \-\-gap\-fill=\fIval
279 .\"O Fill gaps between sections with \fIval\fP. This operation applies to
280 .\"O the \fIload address\fP (LMA) of the sections. It is done by increasing
281 .\"O the size of the section with the lower address, and filling in the extra
282 .\"O space created with \fIval\fP.
283 ¥»¥¯¥·¥ç¥ó´Ö¤Î¥®¥ã¥Ã¥×¤ò \fIval\fP ¤ÇËä¤á¤ë¡£¤³¤ÎÆ°ºî¤Ï
286 (LMA) ¤ËŬÍѤµ¤ì¤ë¡£¤³¤ì¤Ï¥»¥¯¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÄñ°Ì¥¢¥É¥ì¥¹¤ÎʬÁý¤ä¤·¡¢
287 ¤½¤Î;ʬ¤ò \fIval\fP ¤ÇËä¤á¤ë¤³¤È¤Ç¤Ê¤µ¤ì¤ë¡£
289 .B \-\-pad\-to=\fIaddress
290 .\"O Pad the output file up to the load address \fIaddress\fP. This is
291 .\"O done by increasing the size of the last section. The extra space is
292 .\"O filled in with the value specified by \fB\-\-gap\-fill\fP (default
294 ½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥É¥¢¥É¥ì¥¹ \fIaddress\fP ¤Þ¤Ç¿åÁý¤·¤¹¤ë¡£
295 ¤³¤ì¤ÏºÇ¸å¤Î¥»¥¯¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÁý¤ä¤¹¤³¤È¤Ç¤Ê¤µ¤ì¤ë¡£
297 \fB\-\-gap\-fill\fP ¤Ç»ØÄꤵ¤ì¤¿ÃͤÇËä¤á¤é¤ì¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï 0)¡£
299 .B \fB\-\-set\-start=\fIval
300 .\"O Set the start address of the new file to \fIval\fP. Not all object
301 .\"O file formats support setting the start address.
302 ¿·¤·¤¤¥Õ¥¡¥¤¥ë¤Î¥¹¥¿¡¼¥È¥¢¥É¥ì¥¹¤ò \fIval\fP ¤ËÀßÄꤹ¤ë¡£¤¹¤Ù¤Æ¤Î¥ª¥Ö
303 ¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤³¤Î»ØÄ꤬²Äǽ¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
305 .B \fB\-\-adjust\-start=\fIincr
306 .\"O Adjust the start address by adding \fIincr\fP. Not all object file
307 .\"O formats support setting the start address.
308 ¥¹¥¿¡¼¥È¥¢¥É¥ì¥¹¤ò \fIincr\fP ¤À¤±Áý¤ä¤¹¡£¤¹¤Ù¤Æ¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
309 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤³¤Î»ØÄ꤬²Äǽ¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£
311 .B \fB\-\-adjust\-vma=\fIincr
312 .\"O Adjust the address of all sections, as well as the start address, by
313 .\"O adding \fIincr\fP. Some object file formats do not permit section
314 .\"O addresses to be changed arbitrarily. Note that this does not relocate
315 .\"O the sections; if the program expects sections to be loaded at a
316 .\"O certain address, and this option is used to change the sections such
317 .\"O that they are loaded at a different address, the program may fail.
318 ¤¹¤Ù¤Æ¤Î¥»¥¯¥·¥ç¥ó (¥¹¥¿¡¼¥È¥¢¥É¥ì¥¹¤â´Þ¤Þ¤ì¤ë) ¤Î¥¢¥É¥ì¥¹¤ò
319 \fIincr\fP ¤À¤±Áý¤ä¤¹¡£¤¹¤Ù¤Æ¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤ÇǤ°Õ
320 ¤Î¥¢¥É¥ì¥¹ÀßÄ꤬»ØÄ꤬²Äǽ¤Ê¤ï¤±¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¡£¤Þ¤¿¤³¤Î¥ª
321 ¥×¥·¥ç¥ó¤Ç¤Ï¤½¤ì¤¾¤ì¤Î¥»¥¯¥·¥ç¥ó¤¬¥í¡¼¥É¤µ¤ì¤ë¥¢¥É¥ì¥¹¤òÊѤ¨¤Æ¤·¤Þ¤¦¤Î
322 ¤Ç¡¢¥×¥í¥°¥é¥à¤¬Æ°¤«¤Ê¤¯¤Ê¤ë²ÄǽÀ¤¬¤¢¤ë
324 .B \fB\-\-adjust\-section\-vma=\fIsection{=,+,-}val
325 .\"O Set or adjust the address of the named \fIsection\fP. If \fI=\fP is
326 .\"O used, the section address is set to \fIval\fP. Otherwise, \fIval\fP
327 .\"O is added to or subtracted from the section address. See the comments
328 .\"O under \fB\-\-adjust\-vma\fP, above. If \fIsection\fP does not exist
329 .\"O in the input file, a warning will be issued, unless
330 .\"O \fB\-\-no\-adjust\-warnings\fP is used.
331 ̾Á°¤¬ \fIsection\fP ¤Î¥»¥¯¥·¥ç¥ó¤Î¥¢¥É¥ì¥¹¤òÀßÄꤹ¤ë¡£ \fI=\fP ¤¬ÍѤ¤
332 ¤é¤ì¤¿¾ì¹ç¤Ï¥»¥¯¥·¥ç¥ó¤Î¥¢¥É¥ì¥¹¤Ï \fIval\fP ¤Ë¤µ¤ì¤ë¡£¤½¤ì°Ê³°¤Î¾ì¹ç
333 ¤Ï¥»¥¯¥·¥ç¥ó¤Î¥¢¥É¥ì¥¹¤«¤é \fIval\fP ¤¬Áý¸º¤µ¤ì¤ë¡£¾åµ¤Î
334 \fB\-\-adjust\-vma\fP ¤Ë´Ø¤¹¤ë¥³¥á¥ó¥È¤ò»²¾È¤Î¤³¤È¡£ \fIsection\fP ¤¬
335 ÆþÎÏ¥Õ¥¡¥¤¥ë¤Ë¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï·Ù¹ð¥°¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë (¤¿¤À¤·
336 \fB\-\-no\-adjust\-warning\fP ¤¬»ØÄꤵ¤ì¤Æ¤¤¤¿¤éɽ¼¨¤·¤Ê¤¤)¡£
338 .B \fB\-\-adjust\-warnings
339 .\"O If \fB\-\-adjust\-section\-vma\fP is used, and the named section does
340 .\"O not exist, issue a warning. This is the default.
341 \fB\-\-adjust\-section\-vma\fP ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤¡¢
342 ÂоݤȤʤ륻¥¯¥·¥ç¥ó¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð·Ù¹ð¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¡£
343 ¥Ç¥Õ¥©¥ë¥È¤ÎÆ°ºî¤Ç¤¢¤ë¡£
345 .B \fB\-\-no\-adjust\-warnings
346 .\"O Do not issue a warning if \fB\-\-adjust\-section\-vma\fP is used, even
347 .\"O if the named section does not exist.
348 \fB\-\-adjust\-section\-vma\fP ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤¡¢¤«¤ÄÂоݤȤʤ륻
349 ¥¯¥·¥ç¥ó¤¬Â¸ºß¤·¤Æ¤¤¤Ê¤¯¤Æ¤â·Ù¹ð¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¤Ê¤¤¡£
351 .B \fB\-\-set\-section\-flags=\fIsection=flags
352 .\"O Set the flags for the named section. The \fIflags\fP argument is a
353 .\"O comma separated string of flag names. The recognized names are
354 .\"O \fIalloc\fP, \fIload\fP, \fIreadonly\fP, \fIcode\fP, \fIdata\fP, and
355 .\"O \fIrom\fP. Not all flags are meaningful for all object file
357 »ØÄꤷ¤¿¥»¥¯¥·¥ç¥ó¤Î¥Õ¥é¥°¤òÀßÄꤹ¤ë¡£°ú¿ô \fIflags\fP ¤Ï¥³¥ó¥Þ (,) ¤Ç
358 ¶èÀÚ¤é¤ì¤¿¥Õ¥é¥°Ê¸»úÎó¤Ç¤¢¤ë¡£Ç§¼±¤µ¤ì¤ëʸ»úÎó¤Ï \fIalloc\fP¡¢
359 \fIload\fP¡¢ \fIreadonly\fP¡¢ \fIcode\fP¡¢ \fIdata\fP¡¢ \fIrom\fP ¤Ç¤¢
360 ¤ë¡£¤¹¤Ù¤Æ¤Î¥Õ¥é¥°¤¬¤¢¤é¤æ¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç͸ú¤Ê¤ï¤±¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ
363 .B \fB\-\-add\-section=\fIsectionname=filename
364 .\"O Add a new section named \fIsectionname\fR while copying the file. The
365 .\"O contents of the new section are taken from the file \fIfilename\fR.
366 .\"O The size of the section will be the size of the file. This option
367 .\"O only works on file formats which can support sections with arbitrary
369 ¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼¤¹¤ë¤È¤¤Ë \fIsectionname\fP ¤È¤¤¤¦Ì¾Á°¤Î¥»¥¯¥·¥ç¥ó¤ò
370 Äɲ乤롣¤³¤Î¿·¤·¤¤¥»¥¯¥·¥ç¥ó¤ÎÆâÍƤϥե¡¥¤¥ë \fIfilename\fP ¤«¤é¼è¤é
371 ¤ì¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤¬µ¡Ç½¤¹¤ë¤Î¤Ï¡¢Ç¤°Õ¤Î¥»¥¯¥·¥ç¥ó̾¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤
372 ¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤À¤±¤Ç¤¢¤ë¡£
374 .B \-\-change\-leading\-char
375 .\"O Some object file formats use special characters at the start of
376 .\"O symbols. The most common such character is underscore, which compilers
377 .\"O often add before every symbol. This option tells
379 .\"O to change the leading character of every symbol when it converts
380 .\"O between object file formats. If the object file formats use the same
381 .\"O leading character, this option has no effect. Otherwise, it will add
382 .\"O a character, or remove a character, or change a character, as
384 ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤è¤Ã¤Æ¤Ï¡¢¥·¥ó¥Ü¥ë̾¤ÎÀèƬ¤ËÆÃÄê¤Î
385 ʸ»ú¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤¬¤¢¤ë¡£¤è¤¯¤¢¤ëÎã¤Ï¥¢¥ó¥À¡¼¥¹¥³¥¢ (_) ¤Ç¡¢¤³¤ì¤Ï
386 ¥³¥ó¥Ñ¥¤¥é¤¬¤¹¤Ù¤Æ¤Î¥·¥ó¥Ü¥ë̾¤ËÁ°ÃÖ¤¹¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È
388 ¤Ï¥Õ¥©¡¼¥Þ¥Ã¥ÈÊÑ´¹¤ÎºÝ¤Ë¤¹¤Ù¤Æ¤Î¥·¥ó¥Ü¥ë¤Ë¤ª¤±¤ëÀèƬʸ»ú¤òÊѹ¹¤·¤è¤¦¤È
389 ¤¹¤ë¡£Æ±¤¸ÀèƬʸ»ú¤ò»ý¤Ä¥ª¥Ö¥¸¥§¥¯¥È´Ö¤Ç¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï°ÕÌ£¤ò»ý¤¿
390 ¤Ê¤¤¡£°Û¤Ê¤ë¾ì¹ç¤Ï¡¢¾ì¹ç¤Ë±þ¤¸¤ÆÀèƬʸ»ú¤¬Äɲ䵤줿¤êºï½ü¡¢Êѹ¹¤µ¤ì¤¿
393 .B \-\-remove\-leading\-char
394 .\"O If the first character of a global symbol is a special symbol leading
395 .\"O character used by the object file format, remove the character. The
396 .\"O most common symbol leading character is underscore. This option will
397 .\"O remove a leading underscore from all global symbols. This can be
398 .\"O useful if you want to link together objects of different file formats
399 .\"O with different conventions for symbol names. This is different from
400 .\"O @code{--change-leading-char} because it always changes the symbol name
401 .\"O when appropriate, regardless of the object file format of the output
402 ¥°¥í¡¼¥Ð¥ë¥·¥ó¥Ü¥ë¤ÎÀèƬʸ»ú¤¬¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤ËÆÃͤΤâ¤Î¤Ç¤¢¤Ã¤¿
403 ¾ì¹ç¡¢¤³¤ì¤òºï½ü¤¹¤ë¡£Ä̾ï¤Ï¥¢¥ó¥À¡¼¥¹¥³¥¢ (_) ¤¬¤³¤ì¤Ë¤¢¤¿¤ë¡£¤³¤Î¥ª
404 ¥×¥·¥ç¥ó¤Ï¤¹¤Ù¤Æ¤Î¥°¥í¡¼¥Ð¥ë¥·¥ó¥Ü¥ë¤«¤éÀèƬ¤Ë¤¢¤ë¥¢¥ó¥À¡¼¥¹¥³¥¢¤òºï½ü
405 ¤¹¤ë¡£¤³¤ì¤Ï (¥·¥ó¥Ü¥ë̾¤Î̿̾ήµ·¤¬°Û¤Ê¤ë) Ê£¿ô¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë°¤¹¤ë
406 ¥ª¥Ö¥¸¥§¥¯¥È·²¤òƱ»þ¤Ë¥ê¥ó¥¯¤¹¤ë¾ì¹ç¤ËÍÍѤǤ¢¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï
407 \fB\-\-change\-leading\-char\fP ¤È¤Ï°Û¤Ê¤ë¡£¸å¼Ô¤Ç¤Ï½ÐÎϤΥե©¡¼¥Þ¥Ã¥È
408 ¤Ë¤«¤«¤ï¤é¤º¡¢³ºÅö¤·¤¿¥±¡¼¥¹¤Ç¤Ï¤¹¤Ù¤ÆÊѹ¹¤¬¹Ô¤ï¤ì¤ë¡£
411 .\"O Change all global symbols in the file to be weak.
412 ¥Õ¥¡¥¤¥ë¤Î¤¹¤Ù¤Æ¤Î global ¤Ê¥·¥ó¥Ü¥ë¤ò weak ¤ËÊѹ¹¤¹¤ë¡£
415 .B \-v\fR, \fB\-\-verbose
416 .\"O Verbose output: list all object files modified. In the case of
417 .\"O archives, "\fBobjcopy \-V\fR" lists all members of the archive.
418 ¾ÜºÙ½ÐÎϥ⡼¥É¡£½¤Àµ¤µ¤ì¤¿¤¹¤Ù¤Æ¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥È¤¹¤ë¡£½ñ
419 ¸Ë¤Î¾ì¹ç¤Ï"\fBobjcopy \-V\fR" ¤È¤¹¤ë¤È½ñ¸Ë¤Î¤¹¤Ù¤Æ¤Î¥á¥ó¥Ð¡¼¤òɽ¼¨¤¹¤ë¡£
421 .B \-V\fR, \fB\-\-version
422 .\"O Show the version number of
426 ¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
429 .\"O Show a summary of the options to
433 ¤Î¥ª¥×¥·¥ç¥ó¤ÎÍ×Ìó¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
437 .\"O .RB "`\|" binutils "\|'"
443 .\"O The GNU Binary Utilities\c
444 .\"O \&, Roland H. Pesch (June 1993).
446 ¤Î `\fB binutils \fP' ¥¨¥ó¥È¥ê¡¢
447 .IR "The GNU Binary Utilities" ,
448 Roland H. Pesch (June 1993)¡¢
452 Copyright (c) 1993, 94, 95, 96, 1997 Free Software Foundation, Inc.
454 Permission is granted to make and distribute verbatim copies of
455 this manual provided the copyright notice and this permission notice
456 are preserved on all copies.
458 Permission is granted to copy and distribute modified versions of this
459 manual under the conditions for verbatim copying, provided that the
460 entire resulting derived work is distributed under the terms of a
461 permission notice identical to this one.
463 Permission is granted to copy and distribute translations of this
464 manual into another language, under the above conditions for modified
465 versions, except that this permission notice may be included in
466 translations approved by the Free Software Foundation instead of in
467 the original English.