riscv-none-embed-objcopy.1 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215
  1. .\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "OBJCOPY 1"
  136. .TH OBJCOPY 1 "2020-07-03" "binutils-2.32" "GNU Development Tools"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. objcopy \- copy and translate object files
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. objcopy [\fB\-F\fR \fIbfdname\fR|\fB\-\-target=\fR\fIbfdname\fR]
  146. [\fB\-I\fR \fIbfdname\fR|\fB\-\-input\-target=\fR\fIbfdname\fR]
  147. [\fB\-O\fR \fIbfdname\fR|\fB\-\-output\-target=\fR\fIbfdname\fR]
  148. [\fB\-B\fR \fIbfdarch\fR|\fB\-\-binary\-architecture=\fR\fIbfdarch\fR]
  149. [\fB\-S\fR|\fB\-\-strip\-all\fR]
  150. [\fB\-g\fR|\fB\-\-strip\-debug\fR]
  151. [\fB\-\-strip\-unneeded\fR]
  152. [\fB\-K\fR \fIsymbolname\fR|\fB\-\-keep\-symbol=\fR\fIsymbolname\fR]
  153. [\fB\-N\fR \fIsymbolname\fR|\fB\-\-strip\-symbol=\fR\fIsymbolname\fR]
  154. [\fB\-\-strip\-unneeded\-symbol=\fR\fIsymbolname\fR]
  155. [\fB\-G\fR \fIsymbolname\fR|\fB\-\-keep\-global\-symbol=\fR\fIsymbolname\fR]
  156. [\fB\-\-localize\-hidden\fR]
  157. [\fB\-L\fR \fIsymbolname\fR|\fB\-\-localize\-symbol=\fR\fIsymbolname\fR]
  158. [\fB\-\-globalize\-symbol=\fR\fIsymbolname\fR]
  159. [\fB\-\-globalize\-symbols=\fR\fIfilename\fR]
  160. [\fB\-W\fR \fIsymbolname\fR|\fB\-\-weaken\-symbol=\fR\fIsymbolname\fR]
  161. [\fB\-w\fR|\fB\-\-wildcard\fR]
  162. [\fB\-x\fR|\fB\-\-discard\-all\fR]
  163. [\fB\-X\fR|\fB\-\-discard\-locals\fR]
  164. [\fB\-b\fR \fIbyte\fR|\fB\-\-byte=\fR\fIbyte\fR]
  165. [\fB\-i\fR [\fIbreadth\fR]|\fB\-\-interleave\fR[=\fIbreadth\fR]]
  166. [\fB\-\-interleave\-width=\fR\fIwidth\fR]
  167. [\fB\-j\fR \fIsectionpattern\fR|\fB\-\-only\-section=\fR\fIsectionpattern\fR]
  168. [\fB\-R\fR \fIsectionpattern\fR|\fB\-\-remove\-section=\fR\fIsectionpattern\fR]
  169. [\fB\-\-remove\-relocations=\fR\fIsectionpattern\fR]
  170. [\fB\-p\fR|\fB\-\-preserve\-dates\fR]
  171. [\fB\-D\fR|\fB\-\-enable\-deterministic\-archives\fR]
  172. [\fB\-U\fR|\fB\-\-disable\-deterministic\-archives\fR]
  173. [\fB\-\-debugging\fR]
  174. [\fB\-\-gap\-fill=\fR\fIval\fR]
  175. [\fB\-\-pad\-to=\fR\fIaddress\fR]
  176. [\fB\-\-set\-start=\fR\fIval\fR]
  177. [\fB\-\-adjust\-start=\fR\fIincr\fR]
  178. [\fB\-\-change\-addresses=\fR\fIincr\fR]
  179. [\fB\-\-change\-section\-address\fR \fIsectionpattern\fR{=,+,\-}\fIval\fR]
  180. [\fB\-\-change\-section\-lma\fR \fIsectionpattern\fR{=,+,\-}\fIval\fR]
  181. [\fB\-\-change\-section\-vma\fR \fIsectionpattern\fR{=,+,\-}\fIval\fR]
  182. [\fB\-\-change\-warnings\fR] [\fB\-\-no\-change\-warnings\fR]
  183. [\fB\-\-set\-section\-flags\fR \fIsectionpattern\fR=\fIflags\fR]
  184. [\fB\-\-add\-section\fR \fIsectionname\fR=\fIfilename\fR]
  185. [\fB\-\-dump\-section\fR \fIsectionname\fR=\fIfilename\fR]
  186. [\fB\-\-update\-section\fR \fIsectionname\fR=\fIfilename\fR]
  187. [\fB\-\-rename\-section\fR \fIoldname\fR=\fInewname\fR[,\fIflags\fR]]
  188. [\fB\-\-long\-section\-names\fR {enable,disable,keep}]
  189. [\fB\-\-change\-leading\-char\fR] [\fB\-\-remove\-leading\-char\fR]
  190. [\fB\-\-reverse\-bytes=\fR\fInum\fR]
  191. [\fB\-\-srec\-len=\fR\fIival\fR] [\fB\-\-srec\-forceS3\fR]
  192. [\fB\-\-redefine\-sym\fR \fIold\fR=\fInew\fR]
  193. [\fB\-\-redefine\-syms=\fR\fIfilename\fR]
  194. [\fB\-\-weaken\fR]
  195. [\fB\-\-keep\-symbols=\fR\fIfilename\fR]
  196. [\fB\-\-strip\-symbols=\fR\fIfilename\fR]
  197. [\fB\-\-strip\-unneeded\-symbols=\fR\fIfilename\fR]
  198. [\fB\-\-keep\-global\-symbols=\fR\fIfilename\fR]
  199. [\fB\-\-localize\-symbols=\fR\fIfilename\fR]
  200. [\fB\-\-weaken\-symbols=\fR\fIfilename\fR]
  201. [\fB\-\-add\-symbol\fR \fIname\fR=[\fIsection\fR:]\fIvalue\fR[,\fIflags\fR]]
  202. [\fB\-\-alt\-machine\-code=\fR\fIindex\fR]
  203. [\fB\-\-prefix\-symbols=\fR\fIstring\fR]
  204. [\fB\-\-prefix\-sections=\fR\fIstring\fR]
  205. [\fB\-\-prefix\-alloc\-sections=\fR\fIstring\fR]
  206. [\fB\-\-add\-gnu\-debuglink=\fR\fIpath-to-file\fR]
  207. [\fB\-\-keep\-file\-symbols\fR]
  208. [\fB\-\-only\-keep\-debug\fR]
  209. [\fB\-\-strip\-dwo\fR]
  210. [\fB\-\-extract\-dwo\fR]
  211. [\fB\-\-extract\-symbol\fR]
  212. [\fB\-\-writable\-text\fR]
  213. [\fB\-\-readonly\-text\fR]
  214. [\fB\-\-pure\fR]
  215. [\fB\-\-impure\fR]
  216. [\fB\-\-file\-alignment=\fR\fInum\fR]
  217. [\fB\-\-heap=\fR\fIsize\fR]
  218. [\fB\-\-image\-base=\fR\fIaddress\fR]
  219. [\fB\-\-section\-alignment=\fR\fInum\fR]
  220. [\fB\-\-stack=\fR\fIsize\fR]
  221. [\fB\-\-subsystem=\fR\fIwhich\fR:\fImajor\fR.\fIminor\fR]
  222. [\fB\-\-compress\-debug\-sections\fR]
  223. [\fB\-\-decompress\-debug\-sections\fR]
  224. [\fB\-\-elf\-stt\-common=\fR\fIval\fR]
  225. [\fB\-\-merge\-notes\fR]
  226. [\fB\-\-no\-merge\-notes\fR]
  227. [\fB\-v\fR|\fB\-\-verbose\fR]
  228. [\fB\-V\fR|\fB\-\-version\fR]
  229. [\fB\-\-help\fR] [\fB\-\-info\fR]
  230. \fIinfile\fR [\fIoutfile\fR]
  231. .SH "DESCRIPTION"
  232. .IX Header "DESCRIPTION"
  233. The \s-1GNU\s0 \fBobjcopy\fR utility copies the contents of an object
  234. file to another. \fBobjcopy\fR uses the \s-1GNU BFD\s0 Library to
  235. read and write the object files. It can write the destination object
  236. file in a format different from that of the source object file. The
  237. exact behavior of \fBobjcopy\fR is controlled by command-line options.
  238. Note that \fBobjcopy\fR should be able to copy a fully linked file
  239. between any two formats. However, copying a relocatable object file
  240. between any two formats may not work as expected.
  241. .PP
  242. \&\fBobjcopy\fR creates temporary files to do its translations and
  243. deletes them afterward. \fBobjcopy\fR uses \s-1BFD\s0 to do all its
  244. translation work; it has access to all the formats described in \s-1BFD\s0
  245. and thus is able to recognize most formats without being told
  246. explicitly.
  247. .PP
  248. \&\fBobjcopy\fR can be used to generate S\-records by using an output
  249. target of \fBsrec\fR (e.g., use \fB\-O srec\fR).
  250. .PP
  251. \&\fBobjcopy\fR can be used to generate a raw binary file by using an
  252. output target of \fBbinary\fR (e.g., use \fB\-O binary\fR). When
  253. \&\fBobjcopy\fR generates a raw binary file, it will essentially produce
  254. a memory dump of the contents of the input object file. All symbols and
  255. relocation information will be discarded. The memory dump will start at
  256. the load address of the lowest section copied into the output file.
  257. .PP
  258. When generating an S\-record or a raw binary file, it may be helpful to
  259. use \fB\-S\fR to remove sections containing debugging information. In
  260. some cases \fB\-R\fR will be useful to remove sections which contain
  261. information that is not needed by the binary file.
  262. .PP
  263. Note\-\-\-\fBobjcopy\fR is not able to change the endianness of its input
  264. files. If the input format has an endianness (some formats do not),
  265. \&\fBobjcopy\fR can only copy the inputs into file formats that have the
  266. same endianness or which have no endianness (e.g., \fBsrec\fR).
  267. (However, see the \fB\-\-reverse\-bytes\fR option.)
  268. .SH "OPTIONS"
  269. .IX Header "OPTIONS"
  270. .IP "\fIinfile\fR" 4
  271. .IX Item "infile"
  272. .PD 0
  273. .IP "\fIoutfile\fR" 4
  274. .IX Item "outfile"
  275. .PD
  276. The input and output files, respectively.
  277. If you do not specify \fIoutfile\fR, \fBobjcopy\fR creates a
  278. temporary file and destructively renames the result with
  279. the name of \fIinfile\fR.
  280. .IP "\fB\-I\fR \fIbfdname\fR" 4
  281. .IX Item "-I bfdname"
  282. .PD 0
  283. .IP "\fB\-\-input\-target=\fR\fIbfdname\fR" 4
  284. .IX Item "--input-target=bfdname"
  285. .PD
  286. Consider the source file's object format to be \fIbfdname\fR, rather than
  287. attempting to deduce it.
  288. .IP "\fB\-O\fR \fIbfdname\fR" 4
  289. .IX Item "-O bfdname"
  290. .PD 0
  291. .IP "\fB\-\-output\-target=\fR\fIbfdname\fR" 4
  292. .IX Item "--output-target=bfdname"
  293. .PD
  294. Write the output file using the object format \fIbfdname\fR.
  295. .IP "\fB\-F\fR \fIbfdname\fR" 4
  296. .IX Item "-F bfdname"
  297. .PD 0
  298. .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
  299. .IX Item "--target=bfdname"
  300. .PD
  301. Use \fIbfdname\fR as the object format for both the input and the output
  302. file; i.e., simply transfer data from source to destination with no
  303. translation.
  304. .IP "\fB\-B\fR \fIbfdarch\fR" 4
  305. .IX Item "-B bfdarch"
  306. .PD 0
  307. .IP "\fB\-\-binary\-architecture=\fR\fIbfdarch\fR" 4
  308. .IX Item "--binary-architecture=bfdarch"
  309. .PD
  310. Useful when transforming a architecture-less input file into an object file.
  311. In this case the output architecture can be set to \fIbfdarch\fR. This
  312. option will be ignored if the input file has a known \fIbfdarch\fR. You
  313. can access this binary data inside a program by referencing the special
  314. symbols that are created by the conversion process. These symbols are
  315. called _binary_\fIobjfile\fR_start, _binary_\fIobjfile\fR_end and
  316. _binary_\fIobjfile\fR_size. e.g. you can transform a picture file into
  317. an object file and then access it in your code using these symbols.
  318. .IP "\fB\-j\fR \fIsectionpattern\fR" 4
  319. .IX Item "-j sectionpattern"
  320. .PD 0
  321. .IP "\fB\-\-only\-section=\fR\fIsectionpattern\fR" 4
  322. .IX Item "--only-section=sectionpattern"
  323. .PD
  324. Copy only the indicated sections from the input file to the output file.
  325. This option may be given more than once. Note that using this option
  326. inappropriately may make the output file unusable. Wildcard
  327. characters are accepted in \fIsectionpattern\fR.
  328. .Sp
  329. If the first character of \fIsectionpattern\fR is the exclamation
  330. point (!) then matching sections will not be copied, even if earlier
  331. use of \fB\-\-only\-section\fR on the same command line would
  332. otherwise copy it. For example:
  333. .Sp
  334. .Vb 1
  335. \& \-\-only\-section=.text.* \-\-only\-section=!.text.foo
  336. .Ve
  337. .Sp
  338. will copy all sectinos maching '.text.*' but not the section
  339. \&'.text.foo'.
  340. .IP "\fB\-R\fR \fIsectionpattern\fR" 4
  341. .IX Item "-R sectionpattern"
  342. .PD 0
  343. .IP "\fB\-\-remove\-section=\fR\fIsectionpattern\fR" 4
  344. .IX Item "--remove-section=sectionpattern"
  345. .PD
  346. Remove any section matching \fIsectionpattern\fR from the output file.
  347. This option may be given more than once. Note that using this option
  348. inappropriately may make the output file unusable. Wildcard
  349. characters are accepted in \fIsectionpattern\fR. Using both the
  350. \&\fB\-j\fR and \fB\-R\fR options together results in undefined
  351. behaviour.
  352. .Sp
  353. If the first character of \fIsectionpattern\fR is the exclamation
  354. point (!) then matching sections will not be removed even if an
  355. earlier use of \fB\-\-remove\-section\fR on the same command line
  356. would otherwise remove it. For example:
  357. .Sp
  358. .Vb 1
  359. \& \-\-remove\-section=.text.* \-\-remove\-section=!.text.foo
  360. .Ve
  361. .Sp
  362. will remove all sections matching the pattern '.text.*', but will not
  363. remove the section '.text.foo'.
  364. .IP "\fB\-\-remove\-relocations=\fR\fIsectionpattern\fR" 4
  365. .IX Item "--remove-relocations=sectionpattern"
  366. Remove non-dynamic relocations from the output file for any section
  367. matching \fIsectionpattern\fR. This option may be given more than
  368. once. Note that using this option inappropriately may make the output
  369. file unusable, and attempting to remove a dynamic relocation section
  370. such as \fB.rela.plt\fR from an executable or shared library with
  371. \&\fB\-\-remove\-relocations=.plt\fR will not work. Wildcard characters
  372. are accepted in \fIsectionpattern\fR.
  373. For example:
  374. .Sp
  375. .Vb 1
  376. \& \-\-remove\-relocations=.text.*
  377. .Ve
  378. .Sp
  379. will remove the relocations for all sections matching the pattern
  380. \&'.text.*'.
  381. .Sp
  382. If the first character of \fIsectionpattern\fR is the exclamation
  383. point (!) then matching sections will not have their relocation
  384. removed even if an earlier use of \fB\-\-remove\-relocations\fR on the
  385. same command line would otherwise cause the relocations to be removed.
  386. For example:
  387. .Sp
  388. .Vb 1
  389. \& \-\-remove\-relocations=.text.* \-\-remove\-relocations=!.text.foo
  390. .Ve
  391. .Sp
  392. will remove all relocations for sections matching the pattern
  393. \&'.text.*', but will not remove relocations for the section
  394. \&'.text.foo'.
  395. .IP "\fB\-S\fR" 4
  396. .IX Item "-S"
  397. .PD 0
  398. .IP "\fB\-\-strip\-all\fR" 4
  399. .IX Item "--strip-all"
  400. .PD
  401. Do not copy relocation and symbol information from the source file.
  402. .IP "\fB\-g\fR" 4
  403. .IX Item "-g"
  404. .PD 0
  405. .IP "\fB\-\-strip\-debug\fR" 4
  406. .IX Item "--strip-debug"
  407. .PD
  408. Do not copy debugging symbols or sections from the source file.
  409. .IP "\fB\-\-strip\-unneeded\fR" 4
  410. .IX Item "--strip-unneeded"
  411. Strip all symbols that are not needed for relocation processing.
  412. .IP "\fB\-K\fR \fIsymbolname\fR" 4
  413. .IX Item "-K symbolname"
  414. .PD 0
  415. .IP "\fB\-\-keep\-symbol=\fR\fIsymbolname\fR" 4
  416. .IX Item "--keep-symbol=symbolname"
  417. .PD
  418. When stripping symbols, keep symbol \fIsymbolname\fR even if it would
  419. normally be stripped. This option may be given more than once.
  420. .IP "\fB\-N\fR \fIsymbolname\fR" 4
  421. .IX Item "-N symbolname"
  422. .PD 0
  423. .IP "\fB\-\-strip\-symbol=\fR\fIsymbolname\fR" 4
  424. .IX Item "--strip-symbol=symbolname"
  425. .PD
  426. Do not copy symbol \fIsymbolname\fR from the source file. This option
  427. may be given more than once.
  428. .IP "\fB\-\-strip\-unneeded\-symbol=\fR\fIsymbolname\fR" 4
  429. .IX Item "--strip-unneeded-symbol=symbolname"
  430. Do not copy symbol \fIsymbolname\fR from the source file unless it is needed
  431. by a relocation. This option may be given more than once.
  432. .IP "\fB\-G\fR \fIsymbolname\fR" 4
  433. .IX Item "-G symbolname"
  434. .PD 0
  435. .IP "\fB\-\-keep\-global\-symbol=\fR\fIsymbolname\fR" 4
  436. .IX Item "--keep-global-symbol=symbolname"
  437. .PD
  438. Keep only symbol \fIsymbolname\fR global. Make all other symbols local
  439. to the file, so that they are not visible externally. This option may
  440. be given more than once. Note: this option cannot be used in
  441. conjunction with the \fB\-\-globalize\-symbol\fR or
  442. \&\fB\-\-globalize\-symbols\fR options.
  443. .IP "\fB\-\-localize\-hidden\fR" 4
  444. .IX Item "--localize-hidden"
  445. In an \s-1ELF\s0 object, mark all symbols that have hidden or internal visibility
  446. as local. This option applies on top of symbol-specific localization options
  447. such as \fB\-L\fR.
  448. .IP "\fB\-L\fR \fIsymbolname\fR" 4
  449. .IX Item "-L symbolname"
  450. .PD 0
  451. .IP "\fB\-\-localize\-symbol=\fR\fIsymbolname\fR" 4
  452. .IX Item "--localize-symbol=symbolname"
  453. .PD
  454. Convert a global or weak symbol called \fIsymbolname\fR into a local
  455. symbol, so that it is not visible externally. This option may be
  456. given more than once. Note \- unique symbols are not converted.
  457. .IP "\fB\-W\fR \fIsymbolname\fR" 4
  458. .IX Item "-W symbolname"
  459. .PD 0
  460. .IP "\fB\-\-weaken\-symbol=\fR\fIsymbolname\fR" 4
  461. .IX Item "--weaken-symbol=symbolname"
  462. .PD
  463. Make symbol \fIsymbolname\fR weak. This option may be given more than once.
  464. .IP "\fB\-\-globalize\-symbol=\fR\fIsymbolname\fR" 4
  465. .IX Item "--globalize-symbol=symbolname"
  466. Give symbol \fIsymbolname\fR global scoping so that it is visible
  467. outside of the file in which it is defined. This option may be given
  468. more than once. Note: this option cannot be used in conjunction with
  469. the \fB\-G\fR or \fB\-\-keep\-global\-symbol\fR options.
  470. .IP "\fB\-w\fR" 4
  471. .IX Item "-w"
  472. .PD 0
  473. .IP "\fB\-\-wildcard\fR" 4
  474. .IX Item "--wildcard"
  475. .PD
  476. Permit regular expressions in \fIsymbolname\fRs used in other command
  477. line options. The question mark (?), asterisk (*), backslash (\e) and
  478. square brackets ([]) operators can be used anywhere in the symbol
  479. name. If the first character of the symbol name is the exclamation
  480. point (!) then the sense of the switch is reversed for that symbol.
  481. For example:
  482. .Sp
  483. .Vb 1
  484. \& \-w \-W !foo \-W fo*
  485. .Ve
  486. .Sp
  487. would cause objcopy to weaken all symbols that start with \*(L"fo\*(R"
  488. except for the symbol \*(L"foo\*(R".
  489. .IP "\fB\-x\fR" 4
  490. .IX Item "-x"
  491. .PD 0
  492. .IP "\fB\-\-discard\-all\fR" 4
  493. .IX Item "--discard-all"
  494. .PD
  495. Do not copy non-global symbols from the source file.
  496. .IP "\fB\-X\fR" 4
  497. .IX Item "-X"
  498. .PD 0
  499. .IP "\fB\-\-discard\-locals\fR" 4
  500. .IX Item "--discard-locals"
  501. .PD
  502. Do not copy compiler-generated local symbols.
  503. (These usually start with \fBL\fR or \fB.\fR.)
  504. .IP "\fB\-b\fR \fIbyte\fR" 4
  505. .IX Item "-b byte"
  506. .PD 0
  507. .IP "\fB\-\-byte=\fR\fIbyte\fR" 4
  508. .IX Item "--byte=byte"
  509. .PD
  510. If interleaving has been enabled via the \fB\-\-interleave\fR option
  511. then start the range of bytes to keep at the \fIbyte\fRth byte.
  512. \&\fIbyte\fR can be in the range from 0 to \fIbreadth\fR\-1, where
  513. \&\fIbreadth\fR is the value given by the \fB\-\-interleave\fR option.
  514. .IP "\fB\-i [\fR\fIbreadth\fR\fB]\fR" 4
  515. .IX Item "-i [breadth]"
  516. .PD 0
  517. .IP "\fB\-\-interleave[=\fR\fIbreadth\fR\fB]\fR" 4
  518. .IX Item "--interleave[=breadth]"
  519. .PD
  520. Only copy a range out of every \fIbreadth\fR bytes. (Header data is
  521. not affected). Select which byte in the range begins the copy with
  522. the \fB\-\-byte\fR option. Select the width of the range with the
  523. \&\fB\-\-interleave\-width\fR option.
  524. .Sp
  525. This option is useful for creating files to program \s-1ROM.\s0 It is
  526. typically used with an \f(CW\*(C`srec\*(C'\fR output target. Note that
  527. \&\fBobjcopy\fR will complain if you do not specify the
  528. \&\fB\-\-byte\fR option as well.
  529. .Sp
  530. The default interleave breadth is 4, so with \fB\-\-byte\fR set to 0,
  531. \&\fBobjcopy\fR would copy the first byte out of every four bytes
  532. from the input to the output.
  533. .IP "\fB\-\-interleave\-width=\fR\fIwidth\fR" 4
  534. .IX Item "--interleave-width=width"
  535. When used with the \fB\-\-interleave\fR option, copy \fIwidth\fR
  536. bytes at a time. The start of the range of bytes to be copied is set
  537. by the \fB\-\-byte\fR option, and the extent of the range is set with
  538. the \fB\-\-interleave\fR option.
  539. .Sp
  540. The default value for this option is 1. The value of \fIwidth\fR plus
  541. the \fIbyte\fR value set by the \fB\-\-byte\fR option must not exceed
  542. the interleave breadth set by the \fB\-\-interleave\fR option.
  543. .Sp
  544. This option can be used to create images for two 16\-bit flashes interleaved
  545. in a 32\-bit bus by passing \fB\-b 0 \-i 4 \-\-interleave\-width=2\fR
  546. and \fB\-b 2 \-i 4 \-\-interleave\-width=2\fR to two \fBobjcopy\fR
  547. commands. If the input was '12345678' then the outputs would be
  548. \&'1256' and '3478' respectively.
  549. .IP "\fB\-p\fR" 4
  550. .IX Item "-p"
  551. .PD 0
  552. .IP "\fB\-\-preserve\-dates\fR" 4
  553. .IX Item "--preserve-dates"
  554. .PD
  555. Set the access and modification dates of the output file to be the same
  556. as those of the input file.
  557. .IP "\fB\-D\fR" 4
  558. .IX Item "-D"
  559. .PD 0
  560. .IP "\fB\-\-enable\-deterministic\-archives\fR" 4
  561. .IX Item "--enable-deterministic-archives"
  562. .PD
  563. Operate in \fIdeterministic\fR mode. When copying archive members
  564. and writing the archive index, use zero for UIDs, GIDs, timestamps,
  565. and use consistent file modes for all files.
  566. .Sp
  567. If \fIbinutils\fR was configured with
  568. \&\fB\-\-enable\-deterministic\-archives\fR, then this mode is on by default.
  569. It can be disabled with the \fB\-U\fR option, below.
  570. .IP "\fB\-U\fR" 4
  571. .IX Item "-U"
  572. .PD 0
  573. .IP "\fB\-\-disable\-deterministic\-archives\fR" 4
  574. .IX Item "--disable-deterministic-archives"
  575. .PD
  576. Do \fInot\fR operate in \fIdeterministic\fR mode. This is the
  577. inverse of the \fB\-D\fR option, above: when copying archive members
  578. and writing the archive index, use their actual \s-1UID, GID,\s0 timestamp,
  579. and file mode values.
  580. .Sp
  581. This is the default unless \fIbinutils\fR was configured with
  582. \&\fB\-\-enable\-deterministic\-archives\fR.
  583. .IP "\fB\-\-debugging\fR" 4
  584. .IX Item "--debugging"
  585. Convert debugging information, if possible. This is not the default
  586. because only certain debugging formats are supported, and the
  587. conversion process can be time consuming.
  588. .IP "\fB\-\-gap\-fill\fR \fIval\fR" 4
  589. .IX Item "--gap-fill val"
  590. Fill gaps between sections with \fIval\fR. This operation applies to
  591. the \fIload address\fR (\s-1LMA\s0) of the sections. It is done by increasing
  592. the size of the section with the lower address, and filling in the extra
  593. space created with \fIval\fR.
  594. .IP "\fB\-\-pad\-to\fR \fIaddress\fR" 4
  595. .IX Item "--pad-to address"
  596. Pad the output file up to the load address \fIaddress\fR. This is
  597. done by increasing the size of the last section. The extra space is
  598. filled in with the value specified by \fB\-\-gap\-fill\fR (default zero).
  599. .IP "\fB\-\-set\-start\fR \fIval\fR" 4
  600. .IX Item "--set-start val"
  601. Set the start address of the new file to \fIval\fR. Not all object file
  602. formats support setting the start address.
  603. .IP "\fB\-\-change\-start\fR \fIincr\fR" 4
  604. .IX Item "--change-start incr"
  605. .PD 0
  606. .IP "\fB\-\-adjust\-start\fR \fIincr\fR" 4
  607. .IX Item "--adjust-start incr"
  608. .PD
  609. Change the start address by adding \fIincr\fR. Not all object file
  610. formats support setting the start address.
  611. .IP "\fB\-\-change\-addresses\fR \fIincr\fR" 4
  612. .IX Item "--change-addresses incr"
  613. .PD 0
  614. .IP "\fB\-\-adjust\-vma\fR \fIincr\fR" 4
  615. .IX Item "--adjust-vma incr"
  616. .PD
  617. Change the \s-1VMA\s0 and \s-1LMA\s0 addresses of all sections, as well as the start
  618. address, by adding \fIincr\fR. Some object file formats do not permit
  619. section addresses to be changed arbitrarily. Note that this does not
  620. relocate the sections; if the program expects sections to be loaded at a
  621. certain address, and this option is used to change the sections such
  622. that they are loaded at a different address, the program may fail.
  623. .IP "\fB\-\-change\-section\-address\fR \fIsectionpattern\fR\fB{=,+,\-}\fR\fIval\fR" 4
  624. .IX Item "--change-section-address sectionpattern{=,+,-}val"
  625. .PD 0
  626. .IP "\fB\-\-adjust\-section\-vma\fR \fIsectionpattern\fR\fB{=,+,\-}\fR\fIval\fR" 4
  627. .IX Item "--adjust-section-vma sectionpattern{=,+,-}val"
  628. .PD
  629. Set or change both the \s-1VMA\s0 address and the \s-1LMA\s0 address of any section
  630. matching \fIsectionpattern\fR. If \fB=\fR is used, the section
  631. address is set to \fIval\fR. Otherwise, \fIval\fR is added to or
  632. subtracted from the section address. See the comments under
  633. \&\fB\-\-change\-addresses\fR, above. If \fIsectionpattern\fR does not
  634. match any sections in the input file, a warning will be issued, unless
  635. \&\fB\-\-no\-change\-warnings\fR is used.
  636. .IP "\fB\-\-change\-section\-lma\fR \fIsectionpattern\fR\fB{=,+,\-}\fR\fIval\fR" 4
  637. .IX Item "--change-section-lma sectionpattern{=,+,-}val"
  638. Set or change the \s-1LMA\s0 address of any sections matching
  639. \&\fIsectionpattern\fR. The \s-1LMA\s0 address is the address where the
  640. section will be loaded into memory at program load time. Normally
  641. this is the same as the \s-1VMA\s0 address, which is the address of the
  642. section at program run time, but on some systems, especially those
  643. where a program is held in \s-1ROM,\s0 the two can be different. If \fB=\fR
  644. is used, the section address is set to \fIval\fR. Otherwise,
  645. \&\fIval\fR is added to or subtracted from the section address. See the
  646. comments under \fB\-\-change\-addresses\fR, above. If
  647. \&\fIsectionpattern\fR does not match any sections in the input file, a
  648. warning will be issued, unless \fB\-\-no\-change\-warnings\fR is used.
  649. .IP "\fB\-\-change\-section\-vma\fR \fIsectionpattern\fR\fB{=,+,\-}\fR\fIval\fR" 4
  650. .IX Item "--change-section-vma sectionpattern{=,+,-}val"
  651. Set or change the \s-1VMA\s0 address of any section matching
  652. \&\fIsectionpattern\fR. The \s-1VMA\s0 address is the address where the
  653. section will be located once the program has started executing.
  654. Normally this is the same as the \s-1LMA\s0 address, which is the address
  655. where the section will be loaded into memory, but on some systems,
  656. especially those where a program is held in \s-1ROM,\s0 the two can be
  657. different. If \fB=\fR is used, the section address is set to
  658. \&\fIval\fR. Otherwise, \fIval\fR is added to or subtracted from the
  659. section address. See the comments under \fB\-\-change\-addresses\fR,
  660. above. If \fIsectionpattern\fR does not match any sections in the
  661. input file, a warning will be issued, unless
  662. \&\fB\-\-no\-change\-warnings\fR is used.
  663. .IP "\fB\-\-change\-warnings\fR" 4
  664. .IX Item "--change-warnings"
  665. .PD 0
  666. .IP "\fB\-\-adjust\-warnings\fR" 4
  667. .IX Item "--adjust-warnings"
  668. .PD
  669. If \fB\-\-change\-section\-address\fR or \fB\-\-change\-section\-lma\fR or
  670. \&\fB\-\-change\-section\-vma\fR is used, and the section pattern does not
  671. match any sections, issue a warning. This is the default.
  672. .IP "\fB\-\-no\-change\-warnings\fR" 4
  673. .IX Item "--no-change-warnings"
  674. .PD 0
  675. .IP "\fB\-\-no\-adjust\-warnings\fR" 4
  676. .IX Item "--no-adjust-warnings"
  677. .PD
  678. Do not issue a warning if \fB\-\-change\-section\-address\fR or
  679. \&\fB\-\-adjust\-section\-lma\fR or \fB\-\-adjust\-section\-vma\fR is used, even
  680. if the section pattern does not match any sections.
  681. .IP "\fB\-\-set\-section\-flags\fR \fIsectionpattern\fR\fB=\fR\fIflags\fR" 4
  682. .IX Item "--set-section-flags sectionpattern=flags"
  683. Set the flags for any sections matching \fIsectionpattern\fR. The
  684. \&\fIflags\fR argument is a comma separated string of flag names. The
  685. recognized names are \fBalloc\fR, \fBcontents\fR, \fBload\fR,
  686. \&\fBnoload\fR, \fBreadonly\fR, \fBcode\fR, \fBdata\fR, \fBrom\fR,
  687. \&\fBshare\fR, and \fBdebug\fR. You can set the \fBcontents\fR flag
  688. for a section which does not have contents, but it is not meaningful
  689. to clear the \fBcontents\fR flag of a section which does have
  690. contents\*(--just remove the section instead. Not all flags are
  691. meaningful for all object file formats.
  692. .IP "\fB\-\-add\-section\fR \fIsectionname\fR\fB=\fR\fIfilename\fR" 4
  693. .IX Item "--add-section sectionname=filename"
  694. Add a new section named \fIsectionname\fR while copying the file. The
  695. contents of the new section are taken from the file \fIfilename\fR. The
  696. size of the section will be the size of the file. This option only
  697. works on file formats which can support sections with arbitrary names.
  698. Note \- it may be necessary to use the \fB\-\-set\-section\-flags\fR
  699. option to set the attributes of the newly created section.
  700. .IP "\fB\-\-dump\-section\fR \fIsectionname\fR\fB=\fR\fIfilename\fR" 4
  701. .IX Item "--dump-section sectionname=filename"
  702. Place the contents of section named \fIsectionname\fR into the file
  703. \&\fIfilename\fR, overwriting any contents that may have been there
  704. previously. This option is the inverse of \fB\-\-add\-section\fR.
  705. This option is similar to the \fB\-\-only\-section\fR option except
  706. that it does not create a formatted file, it just dumps the contents
  707. as raw binary data, without applying any relocations. The option can
  708. be specified more than once.
  709. .IP "\fB\-\-update\-section\fR \fIsectionname\fR\fB=\fR\fIfilename\fR" 4
  710. .IX Item "--update-section sectionname=filename"
  711. Replace the existing contents of a section named \fIsectionname\fR
  712. with the contents of file \fIfilename\fR. The size of the section
  713. will be adjusted to the size of the file. The section flags for
  714. \&\fIsectionname\fR will be unchanged. For \s-1ELF\s0 format files the section
  715. to segment mapping will also remain unchanged, something which is not
  716. possible using \fB\-\-remove\-section\fR followed by
  717. \&\fB\-\-add\-section\fR. The option can be specified more than once.
  718. .Sp
  719. Note \- it is possible to use \fB\-\-rename\-section\fR and
  720. \&\fB\-\-update\-section\fR to both update and rename a section from one
  721. command line. In this case, pass the original section name to
  722. \&\fB\-\-update\-section\fR, and the original and new section names to
  723. \&\fB\-\-rename\-section\fR.
  724. .IP "\fB\-\-add\-symbol\fR \fIname\fR\fB=[\fR\fIsection\fR\fB:]\fR\fIvalue\fR\fB[,\fR\fIflags\fR\fB]\fR" 4
  725. .IX Item "--add-symbol name=[section:]value[,flags]"
  726. Add a new symbol named \fIname\fR while copying the file. This option may be
  727. specified multiple times. If the \fIsection\fR is given, the symbol will be
  728. associated with and relative to that section, otherwise it will be an \s-1ABS\s0
  729. symbol. Specifying an undefined section will result in a fatal error. There
  730. is no check for the value, it will be taken as specified. Symbol flags can
  731. be specified and not all flags will be meaningful for all object file
  732. formats. By default, the symbol will be global. The special flag
  733. \&'before=\fIothersym\fR' will insert the new symbol in front of the specified
  734. \&\fIothersym\fR, otherwise the symbol(s) will be added at the end of the
  735. symbol table in the order they appear.
  736. .IP "\fB\-\-rename\-section\fR \fIoldname\fR\fB=\fR\fInewname\fR\fB[,\fR\fIflags\fR\fB]\fR" 4
  737. .IX Item "--rename-section oldname=newname[,flags]"
  738. Rename a section from \fIoldname\fR to \fInewname\fR, optionally
  739. changing the section's flags to \fIflags\fR in the process. This has
  740. the advantage over using a linker script to perform the rename in that
  741. the output stays as an object file and does not become a linked
  742. executable.
  743. .Sp
  744. This option is particularly helpful when the input format is binary,
  745. since this will always create a section called .data. If for example,
  746. you wanted instead to create a section called .rodata containing binary
  747. data you could use the following command line to achieve it:
  748. .Sp
  749. .Vb 3
  750. \& objcopy \-I binary \-O <output_format> \-B <architecture> \e
  751. \& \-\-rename\-section .data=.rodata,alloc,load,readonly,data,contents \e
  752. \& <input_binary_file> <output_object_file>
  753. .Ve
  754. .IP "\fB\-\-long\-section\-names {enable,disable,keep}\fR" 4
  755. .IX Item "--long-section-names {enable,disable,keep}"
  756. Controls the handling of long section names when processing \f(CW\*(C`COFF\*(C'\fR
  757. and \f(CW\*(C`PE\-COFF\*(C'\fR object formats. The default behaviour, \fBkeep\fR,
  758. is to preserve long section names if any are present in the input file.
  759. The \fBenable\fR and \fBdisable\fR options forcibly enable or disable
  760. the use of long section names in the output object; when \fBdisable\fR
  761. is in effect, any long section names in the input object will be truncated.
  762. The \fBenable\fR option will only emit long section names if any are
  763. present in the inputs; this is mostly the same as \fBkeep\fR, but it
  764. is left undefined whether the \fBenable\fR option might force the
  765. creation of an empty string table in the output file.
  766. .IP "\fB\-\-change\-leading\-char\fR" 4
  767. .IX Item "--change-leading-char"
  768. Some object file formats use special characters at the start of
  769. symbols. The most common such character is underscore, which compilers
  770. often add before every symbol. This option tells \fBobjcopy\fR to
  771. change the leading character of every symbol when it converts between
  772. object file formats. If the object file formats use the same leading
  773. character, this option has no effect. Otherwise, it will add a
  774. character, or remove a character, or change a character, as
  775. appropriate.
  776. .IP "\fB\-\-remove\-leading\-char\fR" 4
  777. .IX Item "--remove-leading-char"
  778. If the first character of a global symbol is a special symbol leading
  779. character used by the object file format, remove the character. The
  780. most common symbol leading character is underscore. This option will
  781. remove a leading underscore from all global symbols. This can be useful
  782. if you want to link together objects of different file formats with
  783. different conventions for symbol names. This is different from
  784. \&\fB\-\-change\-leading\-char\fR because it always changes the symbol name
  785. when appropriate, regardless of the object file format of the output
  786. file.
  787. .IP "\fB\-\-reverse\-bytes=\fR\fInum\fR" 4
  788. .IX Item "--reverse-bytes=num"
  789. Reverse the bytes in a section with output contents. A section length must
  790. be evenly divisible by the value given in order for the swap to be able to
  791. take place. Reversing takes place before the interleaving is performed.
  792. .Sp
  793. This option is used typically in generating \s-1ROM\s0 images for problematic
  794. target systems. For example, on some target boards, the 32\-bit words
  795. fetched from 8\-bit ROMs are re-assembled in little-endian byte order
  796. regardless of the \s-1CPU\s0 byte order. Depending on the programming model, the
  797. endianness of the \s-1ROM\s0 may need to be modified.
  798. .Sp
  799. Consider a simple file with a section containing the following eight
  800. bytes: \f(CW12345678\fR.
  801. .Sp
  802. Using \fB\-\-reverse\-bytes=2\fR for the above example, the bytes in the
  803. output file would be ordered \f(CW21436587\fR.
  804. .Sp
  805. Using \fB\-\-reverse\-bytes=4\fR for the above example, the bytes in the
  806. output file would be ordered \f(CW43218765\fR.
  807. .Sp
  808. By using \fB\-\-reverse\-bytes=2\fR for the above example, followed by
  809. \&\fB\-\-reverse\-bytes=4\fR on the output file, the bytes in the second
  810. output file would be ordered \f(CW34127856\fR.
  811. .IP "\fB\-\-srec\-len=\fR\fIival\fR" 4
  812. .IX Item "--srec-len=ival"
  813. Meaningful only for srec output. Set the maximum length of the Srecords
  814. being produced to \fIival\fR. This length covers both address, data and
  815. crc fields.
  816. .IP "\fB\-\-srec\-forceS3\fR" 4
  817. .IX Item "--srec-forceS3"
  818. Meaningful only for srec output. Avoid generation of S1/S2 records,
  819. creating S3\-only record format.
  820. .IP "\fB\-\-redefine\-sym\fR \fIold\fR\fB=\fR\fInew\fR" 4
  821. .IX Item "--redefine-sym old=new"
  822. Change the name of a symbol \fIold\fR, to \fInew\fR. This can be useful
  823. when one is trying link two things together for which you have no
  824. source, and there are name collisions.
  825. .IP "\fB\-\-redefine\-syms=\fR\fIfilename\fR" 4
  826. .IX Item "--redefine-syms=filename"
  827. Apply \fB\-\-redefine\-sym\fR to each symbol pair "\fIold\fR \fInew\fR"
  828. listed in the file \fIfilename\fR. \fIfilename\fR is simply a flat file,
  829. with one symbol pair per line. Line comments may be introduced by the hash
  830. character. This option may be given more than once.
  831. .IP "\fB\-\-weaken\fR" 4
  832. .IX Item "--weaken"
  833. Change all global symbols in the file to be weak. This can be useful
  834. when building an object which will be linked against other objects using
  835. the \fB\-R\fR option to the linker. This option is only effective when
  836. using an object file format which supports weak symbols.
  837. .IP "\fB\-\-keep\-symbols=\fR\fIfilename\fR" 4
  838. .IX Item "--keep-symbols=filename"
  839. Apply \fB\-\-keep\-symbol\fR option to each symbol listed in the file
  840. \&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbol
  841. name per line. Line comments may be introduced by the hash character.
  842. This option may be given more than once.
  843. .IP "\fB\-\-strip\-symbols=\fR\fIfilename\fR" 4
  844. .IX Item "--strip-symbols=filename"
  845. Apply \fB\-\-strip\-symbol\fR option to each symbol listed in the file
  846. \&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbol
  847. name per line. Line comments may be introduced by the hash character.
  848. This option may be given more than once.
  849. .IP "\fB\-\-strip\-unneeded\-symbols=\fR\fIfilename\fR" 4
  850. .IX Item "--strip-unneeded-symbols=filename"
  851. Apply \fB\-\-strip\-unneeded\-symbol\fR option to each symbol listed in
  852. the file \fIfilename\fR. \fIfilename\fR is simply a flat file, with one
  853. symbol name per line. Line comments may be introduced by the hash
  854. character. This option may be given more than once.
  855. .IP "\fB\-\-keep\-global\-symbols=\fR\fIfilename\fR" 4
  856. .IX Item "--keep-global-symbols=filename"
  857. Apply \fB\-\-keep\-global\-symbol\fR option to each symbol listed in the
  858. file \fIfilename\fR. \fIfilename\fR is simply a flat file, with one
  859. symbol name per line. Line comments may be introduced by the hash
  860. character. This option may be given more than once.
  861. .IP "\fB\-\-localize\-symbols=\fR\fIfilename\fR" 4
  862. .IX Item "--localize-symbols=filename"
  863. Apply \fB\-\-localize\-symbol\fR option to each symbol listed in the file
  864. \&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbol
  865. name per line. Line comments may be introduced by the hash character.
  866. This option may be given more than once.
  867. .IP "\fB\-\-globalize\-symbols=\fR\fIfilename\fR" 4
  868. .IX Item "--globalize-symbols=filename"
  869. Apply \fB\-\-globalize\-symbol\fR option to each symbol listed in the file
  870. \&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbol
  871. name per line. Line comments may be introduced by the hash character.
  872. This option may be given more than once. Note: this option cannot be
  873. used in conjunction with the \fB\-G\fR or \fB\-\-keep\-global\-symbol\fR
  874. options.
  875. .IP "\fB\-\-weaken\-symbols=\fR\fIfilename\fR" 4
  876. .IX Item "--weaken-symbols=filename"
  877. Apply \fB\-\-weaken\-symbol\fR option to each symbol listed in the file
  878. \&\fIfilename\fR. \fIfilename\fR is simply a flat file, with one symbol
  879. name per line. Line comments may be introduced by the hash character.
  880. This option may be given more than once.
  881. .IP "\fB\-\-alt\-machine\-code=\fR\fIindex\fR" 4
  882. .IX Item "--alt-machine-code=index"
  883. If the output architecture has alternate machine codes, use the
  884. \&\fIindex\fRth code instead of the default one. This is useful in case
  885. a machine is assigned an official code and the tool-chain adopts the
  886. new code, but other applications still depend on the original code
  887. being used. For \s-1ELF\s0 based architectures if the \fIindex\fR
  888. alternative does not exist then the value is treated as an absolute
  889. number to be stored in the e_machine field of the \s-1ELF\s0 header.
  890. .IP "\fB\-\-writable\-text\fR" 4
  891. .IX Item "--writable-text"
  892. Mark the output text as writable. This option isn't meaningful for all
  893. object file formats.
  894. .IP "\fB\-\-readonly\-text\fR" 4
  895. .IX Item "--readonly-text"
  896. Make the output text write protected. This option isn't meaningful for all
  897. object file formats.
  898. .IP "\fB\-\-pure\fR" 4
  899. .IX Item "--pure"
  900. Mark the output file as demand paged. This option isn't meaningful for all
  901. object file formats.
  902. .IP "\fB\-\-impure\fR" 4
  903. .IX Item "--impure"
  904. Mark the output file as impure. This option isn't meaningful for all
  905. object file formats.
  906. .IP "\fB\-\-prefix\-symbols=\fR\fIstring\fR" 4
  907. .IX Item "--prefix-symbols=string"
  908. Prefix all symbols in the output file with \fIstring\fR.
  909. .IP "\fB\-\-prefix\-sections=\fR\fIstring\fR" 4
  910. .IX Item "--prefix-sections=string"
  911. Prefix all section names in the output file with \fIstring\fR.
  912. .IP "\fB\-\-prefix\-alloc\-sections=\fR\fIstring\fR" 4
  913. .IX Item "--prefix-alloc-sections=string"
  914. Prefix all the names of all allocated sections in the output file with
  915. \&\fIstring\fR.
  916. .IP "\fB\-\-add\-gnu\-debuglink=\fR\fIpath-to-file\fR" 4
  917. .IX Item "--add-gnu-debuglink=path-to-file"
  918. Creates a .gnu_debuglink section which contains a reference to
  919. \&\fIpath-to-file\fR and adds it to the output file. Note: the file at
  920. \&\fIpath-to-file\fR must exist. Part of the process of adding the
  921. \&.gnu_debuglink section involves embedding a checksum of the contents
  922. of the debug info file into the section.
  923. .Sp
  924. If the debug info file is built in one location but it is going to be
  925. installed at a later time into a different location then do not use
  926. the path to the installed location. The \fB\-\-add\-gnu\-debuglink\fR
  927. option will fail because the installed file does not exist yet.
  928. Instead put the debug info file in the current directory and use the
  929. \&\fB\-\-add\-gnu\-debuglink\fR option without any directory components,
  930. like this:
  931. .Sp
  932. .Vb 1
  933. \& objcopy \-\-add\-gnu\-debuglink=foo.debug
  934. .Ve
  935. .Sp
  936. At debug time the debugger will attempt to look for the separate debug
  937. info file in a set of known locations. The exact set of these
  938. locations varies depending upon the distribution being used, but it
  939. typically includes:
  940. .RS 4
  941. .ie n .IP """* The same directory as the executable.""" 4
  942. .el .IP "\f(CW* The same directory as the executable.\fR" 4
  943. .IX Item "* The same directory as the executable."
  944. .PD 0
  945. .ie n .IP """* A sub\-directory of the directory containing the executable""" 4
  946. .el .IP "\f(CW* A sub\-directory of the directory containing the executable\fR" 4
  947. .IX Item "* A sub-directory of the directory containing the executable"
  948. .PD
  949. called .debug
  950. .ie n .IP """* A global debug directory such as /usr/lib/debug.""" 4
  951. .el .IP "\f(CW* A global debug directory such as /usr/lib/debug.\fR" 4
  952. .IX Item "* A global debug directory such as /usr/lib/debug."
  953. .RE
  954. .RS 4
  955. .Sp
  956. As long as the debug info file has been installed into one of these
  957. locations before the debugger is run everything should work
  958. correctly.
  959. .RE
  960. .IP "\fB\-\-keep\-file\-symbols\fR" 4
  961. .IX Item "--keep-file-symbols"
  962. When stripping a file, perhaps with \fB\-\-strip\-debug\fR or
  963. \&\fB\-\-strip\-unneeded\fR, retain any symbols specifying source file names,
  964. which would otherwise get stripped.
  965. .IP "\fB\-\-only\-keep\-debug\fR" 4
  966. .IX Item "--only-keep-debug"
  967. Strip a file, removing contents of any sections that would not be
  968. stripped by \fB\-\-strip\-debug\fR and leaving the debugging sections
  969. intact. In \s-1ELF\s0 files, this preserves all note sections in the output.
  970. .Sp
  971. Note \- the section headers of the stripped sections are preserved,
  972. including their sizes, but the contents of the section are discarded.
  973. The section headers are preserved so that other tools can match up the
  974. debuginfo file with the real executable, even if that executable has
  975. been relocated to a different address space.
  976. .Sp
  977. The intention is that this option will be used in conjunction with
  978. \&\fB\-\-add\-gnu\-debuglink\fR to create a two part executable. One a
  979. stripped binary which will occupy less space in \s-1RAM\s0 and in a
  980. distribution and the second a debugging information file which is only
  981. needed if debugging abilities are required. The suggested procedure
  982. to create these files is as follows:
  983. .RS 4
  984. .IP "1.<Link the executable as normal. Assuming that it is called>" 4
  985. .IX Item "1.<Link the executable as normal. Assuming that it is called>"
  986. \&\f(CW\*(C`foo\*(C'\fR then...
  987. .ie n .IP "1.<Run ""objcopy \-\-only\-keep\-debug foo foo.dbg"" to>" 4
  988. .el .IP "1.<Run \f(CWobjcopy \-\-only\-keep\-debug foo foo.dbg\fR to>" 4
  989. .IX Item "1.<Run objcopy --only-keep-debug foo foo.dbg to>"
  990. create a file containing the debugging info.
  991. .ie n .IP "1.<Run ""objcopy \-\-strip\-debug foo"" to create a>" 4
  992. .el .IP "1.<Run \f(CWobjcopy \-\-strip\-debug foo\fR to create a>" 4
  993. .IX Item "1.<Run objcopy --strip-debug foo to create a>"
  994. stripped executable.
  995. .ie n .IP "1.<Run ""objcopy \-\-add\-gnu\-debuglink=foo.dbg foo"">" 4
  996. .el .IP "1.<Run \f(CWobjcopy \-\-add\-gnu\-debuglink=foo.dbg foo\fR>" 4
  997. .IX Item "1.<Run objcopy --add-gnu-debuglink=foo.dbg foo>"
  998. to add a link to the debugging info into the stripped executable.
  999. .RE
  1000. .RS 4
  1001. .Sp
  1002. Note\-\-\-the choice of \f(CW\*(C`.dbg\*(C'\fR as an extension for the debug info
  1003. file is arbitrary. Also the \f(CW\*(C`\-\-only\-keep\-debug\*(C'\fR step is
  1004. optional. You could instead do this:
  1005. .IP "1.<Link the executable as normal.>" 4
  1006. .IX Item "1.<Link the executable as normal.>"
  1007. .PD 0
  1008. .ie n .IP "1.<Copy ""foo"" to ""foo.full"">" 4
  1009. .el .IP "1.<Copy \f(CWfoo\fR to \f(CWfoo.full\fR>" 4
  1010. .IX Item "1.<Copy foo to foo.full>"
  1011. .ie n .IP "1.<Run ""objcopy \-\-strip\-debug foo"">" 4
  1012. .el .IP "1.<Run \f(CWobjcopy \-\-strip\-debug foo\fR>" 4
  1013. .IX Item "1.<Run objcopy --strip-debug foo>"
  1014. .ie n .IP "1.<Run ""objcopy \-\-add\-gnu\-debuglink=foo.full foo"">" 4
  1015. .el .IP "1.<Run \f(CWobjcopy \-\-add\-gnu\-debuglink=foo.full foo\fR>" 4
  1016. .IX Item "1.<Run objcopy --add-gnu-debuglink=foo.full foo>"
  1017. .RE
  1018. .RS 4
  1019. .PD
  1020. .Sp
  1021. i.e., the file pointed to by the \fB\-\-add\-gnu\-debuglink\fR can be the
  1022. full executable. It does not have to be a file created by the
  1023. \&\fB\-\-only\-keep\-debug\fR switch.
  1024. .Sp
  1025. Note\-\-\-this switch is only intended for use on fully linked files. It
  1026. does not make sense to use it on object files where the debugging
  1027. information may be incomplete. Besides the gnu_debuglink feature
  1028. currently only supports the presence of one filename containing
  1029. debugging information, not multiple filenames on a one-per-object-file
  1030. basis.
  1031. .RE
  1032. .IP "\fB\-\-strip\-dwo\fR" 4
  1033. .IX Item "--strip-dwo"
  1034. Remove the contents of all \s-1DWARF\s0 .dwo sections, leaving the
  1035. remaining debugging sections and all symbols intact.
  1036. This option is intended for use by the compiler as part of
  1037. the \fB\-gsplit\-dwarf\fR option, which splits debug information
  1038. between the .o file and a separate .dwo file. The compiler
  1039. generates all debug information in the same file, then uses
  1040. the \fB\-\-extract\-dwo\fR option to copy the .dwo sections to
  1041. the .dwo file, then the \fB\-\-strip\-dwo\fR option to remove
  1042. those sections from the original .o file.
  1043. .IP "\fB\-\-extract\-dwo\fR" 4
  1044. .IX Item "--extract-dwo"
  1045. Extract the contents of all \s-1DWARF\s0 .dwo sections. See the
  1046. \&\fB\-\-strip\-dwo\fR option for more information.
  1047. .IP "\fB\-\-file\-alignment\fR \fInum\fR" 4
  1048. .IX Item "--file-alignment num"
  1049. Specify the file alignment. Sections in the file will always begin at
  1050. file offsets which are multiples of this number. This defaults to
  1051. 512.
  1052. [This option is specific to \s-1PE\s0 targets.]
  1053. .IP "\fB\-\-heap\fR \fIreserve\fR" 4
  1054. .IX Item "--heap reserve"
  1055. .PD 0
  1056. .IP "\fB\-\-heap\fR \fIreserve\fR\fB,\fR\fIcommit\fR" 4
  1057. .IX Item "--heap reserve,commit"
  1058. .PD
  1059. Specify the number of bytes of memory to reserve (and optionally commit)
  1060. to be used as heap for this program.
  1061. [This option is specific to \s-1PE\s0 targets.]
  1062. .IP "\fB\-\-image\-base\fR \fIvalue\fR" 4
  1063. .IX Item "--image-base value"
  1064. Use \fIvalue\fR as the base address of your program or dll. This is
  1065. the lowest memory location that will be used when your program or dll
  1066. is loaded. To reduce the need to relocate and improve performance of
  1067. your dlls, each should have a unique base address and not overlap any
  1068. other dlls. The default is 0x400000 for executables, and 0x10000000
  1069. for dlls.
  1070. [This option is specific to \s-1PE\s0 targets.]
  1071. .IP "\fB\-\-section\-alignment\fR \fInum\fR" 4
  1072. .IX Item "--section-alignment num"
  1073. Sets the section alignment. Sections in memory will always begin at
  1074. addresses which are a multiple of this number. Defaults to 0x1000.
  1075. [This option is specific to \s-1PE\s0 targets.]
  1076. .IP "\fB\-\-stack\fR \fIreserve\fR" 4
  1077. .IX Item "--stack reserve"
  1078. .PD 0
  1079. .IP "\fB\-\-stack\fR \fIreserve\fR\fB,\fR\fIcommit\fR" 4
  1080. .IX Item "--stack reserve,commit"
  1081. .PD
  1082. Specify the number of bytes of memory to reserve (and optionally commit)
  1083. to be used as stack for this program.
  1084. [This option is specific to \s-1PE\s0 targets.]
  1085. .IP "\fB\-\-subsystem\fR \fIwhich\fR" 4
  1086. .IX Item "--subsystem which"
  1087. .PD 0
  1088. .IP "\fB\-\-subsystem\fR \fIwhich\fR\fB:\fR\fImajor\fR" 4
  1089. .IX Item "--subsystem which:major"
  1090. .IP "\fB\-\-subsystem\fR \fIwhich\fR\fB:\fR\fImajor\fR\fB.\fR\fIminor\fR" 4
  1091. .IX Item "--subsystem which:major.minor"
  1092. .PD
  1093. Specifies the subsystem under which your program will execute. The
  1094. legal values for \fIwhich\fR are \f(CW\*(C`native\*(C'\fR, \f(CW\*(C`windows\*(C'\fR,
  1095. \&\f(CW\*(C`console\*(C'\fR, \f(CW\*(C`posix\*(C'\fR, \f(CW\*(C`efi\-app\*(C'\fR, \f(CW\*(C`efi\-bsd\*(C'\fR,
  1096. \&\f(CW\*(C`efi\-rtd\*(C'\fR, \f(CW\*(C`sal\-rtd\*(C'\fR, and \f(CW\*(C`xbox\*(C'\fR. You may optionally set
  1097. the subsystem version also. Numeric values are also accepted for
  1098. \&\fIwhich\fR.
  1099. [This option is specific to \s-1PE\s0 targets.]
  1100. .IP "\fB\-\-extract\-symbol\fR" 4
  1101. .IX Item "--extract-symbol"
  1102. Keep the file's section flags and symbols but remove all section data.
  1103. Specifically, the option:
  1104. .RS 4
  1105. .IP "*<removes the contents of all sections;>" 4
  1106. .IX Item "*<removes the contents of all sections;>"
  1107. .PD 0
  1108. .IP "*<sets the size of every section to zero; and>" 4
  1109. .IX Item "*<sets the size of every section to zero; and>"
  1110. .IP "*<sets the file's start address to zero.>" 4
  1111. .IX Item "*<sets the file's start address to zero.>"
  1112. .RE
  1113. .RS 4
  1114. .PD
  1115. .Sp
  1116. This option is used to build a \fI.sym\fR file for a VxWorks kernel.
  1117. It can also be a useful way of reducing the size of a \fB\-\-just\-symbols\fR
  1118. linker input file.
  1119. .RE
  1120. .IP "\fB\-\-compress\-debug\-sections\fR" 4
  1121. .IX Item "--compress-debug-sections"
  1122. Compress \s-1DWARF\s0 debug sections using zlib with \s-1SHF_COMPRESSED\s0 from the
  1123. \&\s-1ELF ABI.\s0 Note \- if compression would actually make a section
  1124. \&\fIlarger\fR, then it is not compressed.
  1125. .IP "\fB\-\-compress\-debug\-sections=none\fR" 4
  1126. .IX Item "--compress-debug-sections=none"
  1127. .PD 0
  1128. .IP "\fB\-\-compress\-debug\-sections=zlib\fR" 4
  1129. .IX Item "--compress-debug-sections=zlib"
  1130. .IP "\fB\-\-compress\-debug\-sections=zlib\-gnu\fR" 4
  1131. .IX Item "--compress-debug-sections=zlib-gnu"
  1132. .IP "\fB\-\-compress\-debug\-sections=zlib\-gabi\fR" 4
  1133. .IX Item "--compress-debug-sections=zlib-gabi"
  1134. .PD
  1135. For \s-1ELF\s0 files, these options control how \s-1DWARF\s0 debug sections are
  1136. compressed. \fB\-\-compress\-debug\-sections=none\fR is equivalent
  1137. to \fB\-\-decompress\-debug\-sections\fR.
  1138. \&\fB\-\-compress\-debug\-sections=zlib\fR and
  1139. \&\fB\-\-compress\-debug\-sections=zlib\-gabi\fR are equivalent to
  1140. \&\fB\-\-compress\-debug\-sections\fR.
  1141. \&\fB\-\-compress\-debug\-sections=zlib\-gnu\fR compresses \s-1DWARF\s0 debug
  1142. sections using zlib. The debug sections are renamed to begin with
  1143. \&\fB.zdebug\fR instead of \fB.debug\fR. Note \- if compression would
  1144. actually make a section \fIlarger\fR, then it is not compressed nor
  1145. renamed.
  1146. .IP "\fB\-\-decompress\-debug\-sections\fR" 4
  1147. .IX Item "--decompress-debug-sections"
  1148. Decompress \s-1DWARF\s0 debug sections using zlib. The original section
  1149. names of the compressed sections are restored.
  1150. .IP "\fB\-\-elf\-stt\-common=yes\fR" 4
  1151. .IX Item "--elf-stt-common=yes"
  1152. .PD 0
  1153. .IP "\fB\-\-elf\-stt\-common=no\fR" 4
  1154. .IX Item "--elf-stt-common=no"
  1155. .PD
  1156. For \s-1ELF\s0 files, these options control whether common symbols should be
  1157. converted to the \f(CW\*(C`STT_COMMON\*(C'\fR or \f(CW\*(C`STT_OBJECT\*(C'\fR type.
  1158. \&\fB\-\-elf\-stt\-common=yes\fR converts common symbol type to
  1159. \&\f(CW\*(C`STT_COMMON\*(C'\fR. \fB\-\-elf\-stt\-common=no\fR converts common symbol
  1160. type to \f(CW\*(C`STT_OBJECT\*(C'\fR.
  1161. .IP "\fB\-\-merge\-notes\fR" 4
  1162. .IX Item "--merge-notes"
  1163. .PD 0
  1164. .IP "\fB\-\-no\-merge\-notes\fR" 4
  1165. .IX Item "--no-merge-notes"
  1166. .PD
  1167. For \s-1ELF\s0 files, attempt (or do not attempt) to reduce the size of any
  1168. \&\s-1SHT_NOTE\s0 type sections by removing duplicate notes.
  1169. .IP "\fB\-V\fR" 4
  1170. .IX Item "-V"
  1171. .PD 0
  1172. .IP "\fB\-\-version\fR" 4
  1173. .IX Item "--version"
  1174. .PD
  1175. Show the version number of \fBobjcopy\fR.
  1176. .IP "\fB\-v\fR" 4
  1177. .IX Item "-v"
  1178. .PD 0
  1179. .IP "\fB\-\-verbose\fR" 4
  1180. .IX Item "--verbose"
  1181. .PD
  1182. Verbose output: list all object files modified. In the case of
  1183. archives, \fBobjcopy \-V\fR lists all members of the archive.
  1184. .IP "\fB\-\-help\fR" 4
  1185. .IX Item "--help"
  1186. Show a summary of the options to \fBobjcopy\fR.
  1187. .IP "\fB\-\-info\fR" 4
  1188. .IX Item "--info"
  1189. Display a list showing all architectures and object formats available.
  1190. .IP "\fB@\fR\fIfile\fR" 4
  1191. .IX Item "@file"
  1192. Read command-line options from \fIfile\fR. The options read are
  1193. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  1194. does not exist, or cannot be read, then the option will be treated
  1195. literally, and not removed.
  1196. .Sp
  1197. Options in \fIfile\fR are separated by whitespace. A whitespace
  1198. character may be included in an option by surrounding the entire
  1199. option in either single or double quotes. Any character (including a
  1200. backslash) may be included by prefixing the character to be included
  1201. with a backslash. The \fIfile\fR may itself contain additional
  1202. @\fIfile\fR options; any such options will be processed recursively.
  1203. .SH "SEE ALSO"
  1204. .IX Header "SEE ALSO"
  1205. \&\fBld\fR\|(1), \fBobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
  1206. .SH "COPYRIGHT"
  1207. .IX Header "COPYRIGHT"
  1208. Copyright (c) 1991\-2019 Free Software Foundation, Inc.
  1209. .PP
  1210. Permission is granted to copy, distribute and/or modify this document
  1211. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  1212. or any later version published by the Free Software Foundation;
  1213. with no Invariant Sections, with no Front-Cover Texts, and with no
  1214. Back-Cover Texts. A copy of the license is included in the
  1215. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".