aarch64-none-linux-gnu-ar.1 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. .\" Automatically generated by Pod::Man 4.09 (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. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "AR 1"
  132. .TH AR 1 "2021-07-02" "binutils-2.36.1" "GNU Development Tools"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. ar \- create, modify, and extract from archives
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. ar [\fB\-X32_64\fR] [\fB\-\fR]\fIp\fR[\fImod\fR] [\fB\-\-plugin\fR \fIname\fR] [\fB\-\-target\fR \fIbfdname\fR] [\fB\-\-output\fR \fIdirname\fR] [\fB\-\-record\-libdeps\fR \fIlibdeps\fR] [\fIrelpos\fR] [\fIcount\fR] \fIarchive\fR [\fImember\fR...]
  142. .SH "DESCRIPTION"
  143. .IX Header "DESCRIPTION"
  144. The \s-1GNU\s0 \fBar\fR program creates, modifies, and extracts from
  145. archives. An \fIarchive\fR is a single file holding a collection of
  146. other files in a structure that makes it possible to retrieve
  147. the original individual files (called \fImembers\fR of the archive).
  148. .PP
  149. The original files' contents, mode (permissions), timestamp, owner, and
  150. group are preserved in the archive, and can be restored on
  151. extraction.
  152. .PP
  153. \&\s-1GNU\s0 \fBar\fR can maintain archives whose members have names of any
  154. length; however, depending on how \fBar\fR is configured on your
  155. system, a limit on member-name length may be imposed for compatibility
  156. with archive formats maintained with other tools. If it exists, the
  157. limit is often 15 characters (typical of formats related to a.out) or 16
  158. characters (typical of formats related to coff).
  159. .PP
  160. \&\fBar\fR is considered a binary utility because archives of this sort
  161. are most often used as \fIlibraries\fR holding commonly needed
  162. subroutines. Since libraries often will depend on other libraries,
  163. \&\fBar\fR can also record the dependencies of a library when the
  164. \&\fB\-\-record\-libdeps\fR option is specified.
  165. .PP
  166. \&\fBar\fR creates an index to the symbols defined in relocatable
  167. object modules in the archive when you specify the modifier \fBs\fR.
  168. Once created, this index is updated in the archive whenever \fBar\fR
  169. makes a change to its contents (save for the \fBq\fR update operation).
  170. An archive with such an index speeds up linking to the library, and
  171. allows routines in the library to call each other without regard to
  172. their placement in the archive.
  173. .PP
  174. You may use \fBnm \-s\fR or \fBnm \-\-print\-armap\fR to list this index
  175. table. If an archive lacks the table, another form of \fBar\fR called
  176. \&\fBranlib\fR can be used to add just the table.
  177. .PP
  178. \&\s-1GNU\s0 \fBar\fR can optionally create a \fIthin\fR archive,
  179. which contains a symbol index and references to the original copies
  180. of the member files of the archive. This is useful for building
  181. libraries for use within a local build tree, where the relocatable
  182. objects are expected to remain available, and copying the contents of
  183. each object would only waste time and space.
  184. .PP
  185. An archive can either be \fIthin\fR or it can be normal. It cannot
  186. be both at the same time. Once an archive is created its format
  187. cannot be changed without first deleting it and then creating a new
  188. archive in its place.
  189. .PP
  190. Thin archives are also \fIflattened\fR, so that adding one thin
  191. archive to another thin archive does not nest it, as would happen with
  192. a normal archive. Instead the elements of the first archive are added
  193. individually to the second archive.
  194. .PP
  195. The paths to the elements of the archive are stored relative to the
  196. archive itself.
  197. .PP
  198. \&\s-1GNU\s0 \fBar\fR is designed to be compatible with two different
  199. facilities. You can control its activity using command-line options,
  200. like the different varieties of \fBar\fR on Unix systems; or, if you
  201. specify the single command-line option \fB\-M\fR, you can control it
  202. with a script supplied via standard input, like the \s-1MRI\s0 \*(L"librarian\*(R"
  203. program.
  204. .SH "OPTIONS"
  205. .IX Header "OPTIONS"
  206. \&\s-1GNU\s0 \fBar\fR allows you to mix the operation code \fIp\fR and modifier
  207. flags \fImod\fR in any order, within the first command-line argument.
  208. .PP
  209. If you wish, you may begin the first command-line argument with a
  210. dash.
  211. .PP
  212. The \fIp\fR keyletter specifies what operation to execute; it may be
  213. any of the following, but you must specify only one of them:
  214. .IP "\fBd\fR" 4
  215. .IX Item "d"
  216. \&\fIDelete\fR modules from the archive. Specify the names of modules to
  217. be deleted as \fImember\fR...; the archive is untouched if you
  218. specify no files to delete.
  219. .Sp
  220. If you specify the \fBv\fR modifier, \fBar\fR lists each module
  221. as it is deleted.
  222. .IP "\fBm\fR" 4
  223. .IX Item "m"
  224. Use this operation to \fImove\fR members in an archive.
  225. .Sp
  226. The ordering of members in an archive can make a difference in how
  227. programs are linked using the library, if a symbol is defined in more
  228. than one member.
  229. .Sp
  230. If no modifiers are used with \f(CW\*(C`m\*(C'\fR, any members you name in the
  231. \&\fImember\fR arguments are moved to the \fIend\fR of the archive;
  232. you can use the \fBa\fR, \fBb\fR, or \fBi\fR modifiers to move them to a
  233. specified place instead.
  234. .IP "\fBp\fR" 4
  235. .IX Item "p"
  236. \&\fIPrint\fR the specified members of the archive, to the standard
  237. output file. If the \fBv\fR modifier is specified, show the member
  238. name before copying its contents to standard output.
  239. .Sp
  240. If you specify no \fImember\fR arguments, all the files in the archive are
  241. printed.
  242. .IP "\fBq\fR" 4
  243. .IX Item "q"
  244. \&\fIQuick append\fR; Historically, add the files \fImember\fR... to the end of
  245. \&\fIarchive\fR, without checking for replacement.
  246. .Sp
  247. The modifiers \fBa\fR, \fBb\fR, and \fBi\fR do \fInot\fR affect this
  248. operation; new members are always placed at the end of the archive.
  249. .Sp
  250. The modifier \fBv\fR makes \fBar\fR list each file as it is appended.
  251. .Sp
  252. Since the point of this operation is speed, implementations of
  253. \&\fBar\fR have the option of not updating the archive's symbol
  254. table if one exists. Too many different systems however assume that
  255. symbol tables are always up-to-date, so \s-1GNU\s0 \fBar\fR will
  256. rebuild the table even with a quick append.
  257. .Sp
  258. Note \- \s-1GNU\s0 \fBar\fR treats the command \fBqs\fR as a
  259. synonym for \fBr\fR \- replacing already existing files in the
  260. archive and appending new ones at the end.
  261. .IP "\fBr\fR" 4
  262. .IX Item "r"
  263. Insert the files \fImember\fR... into \fIarchive\fR (with
  264. \&\fIreplacement\fR). This operation differs from \fBq\fR in that any
  265. previously existing members are deleted if their names match those being
  266. added.
  267. .Sp
  268. If one of the files named in \fImember\fR... does not exist, \fBar\fR
  269. displays an error message, and leaves undisturbed any existing members
  270. of the archive matching that name.
  271. .Sp
  272. By default, new members are added at the end of the file; but you may
  273. use one of the modifiers \fBa\fR, \fBb\fR, or \fBi\fR to request
  274. placement relative to some existing member.
  275. .Sp
  276. The modifier \fBv\fR used with this operation elicits a line of
  277. output for each file inserted, along with one of the letters \fBa\fR or
  278. \&\fBr\fR to indicate whether the file was appended (no old member
  279. deleted) or replaced.
  280. .IP "\fBs\fR" 4
  281. .IX Item "s"
  282. Add an index to the archive, or update it if it already exists. Note
  283. this command is an exception to the rule that there can only be one
  284. command letter, as it is possible to use it as either a command or a
  285. modifier. In either case it does the same thing.
  286. .IP "\fBt\fR" 4
  287. .IX Item "t"
  288. Display a \fItable\fR listing the contents of \fIarchive\fR, or those
  289. of the files listed in \fImember\fR... that are present in the
  290. archive. Normally only the member name is shown, but if the modifier
  291. \&\fBO\fR is specified, then the corresponding offset of the member is also
  292. displayed. Finally, in order to see the modes (permissions), timestamp,
  293. owner, group, and size the \fBv\fR modifier should be included.
  294. .Sp
  295. If you do not specify a \fImember\fR, all files in the archive
  296. are listed.
  297. .Sp
  298. If there is more than one file with the same name (say, \fBfie\fR) in
  299. an archive (say \fBb.a\fR), \fBar t b.a fie\fR lists only the
  300. first instance; to see them all, you must ask for a complete
  301. listing\-\-\-in our example, \fBar t b.a\fR.
  302. .IP "\fBx\fR" 4
  303. .IX Item "x"
  304. \&\fIExtract\fR members (named \fImember\fR) from the archive. You can
  305. use the \fBv\fR modifier with this operation, to request that
  306. \&\fBar\fR list each name as it extracts it.
  307. .Sp
  308. If you do not specify a \fImember\fR, all files in the archive
  309. are extracted.
  310. .Sp
  311. Files cannot be extracted from a thin archive, and there are
  312. restrictions on extracting from archives created with \fBP\fR: The
  313. paths must not be absolute, may not contain \f(CW\*(C`..\*(C'\fR, and any
  314. subdirectories in the paths must exist. If it is desired to avoid
  315. these restrictions then used the \fB\-\-output\fR option to specify
  316. an output directory.
  317. .PP
  318. A number of modifiers (\fImod\fR) may immediately follow the \fIp\fR
  319. keyletter, to specify variations on an operation's behavior:
  320. .IP "\fBa\fR" 4
  321. .IX Item "a"
  322. Add new files \fIafter\fR an existing member of the
  323. archive. If you use the modifier \fBa\fR, the name of an existing archive
  324. member must be present as the \fIrelpos\fR argument, before the
  325. \&\fIarchive\fR specification.
  326. .IP "\fBb\fR" 4
  327. .IX Item "b"
  328. Add new files \fIbefore\fR an existing member of the
  329. archive. If you use the modifier \fBb\fR, the name of an existing archive
  330. member must be present as the \fIrelpos\fR argument, before the
  331. \&\fIarchive\fR specification. (same as \fBi\fR).
  332. .IP "\fBc\fR" 4
  333. .IX Item "c"
  334. \&\fICreate\fR the archive. The specified \fIarchive\fR is always
  335. created if it did not exist, when you request an update. But a warning is
  336. issued unless you specify in advance that you expect to create it, by
  337. using this modifier.
  338. .IP "\fBD\fR" 4
  339. .IX Item "D"
  340. Operate in \fIdeterministic\fR mode. When adding files and the archive
  341. index use zero for UIDs, GIDs, timestamps, and use consistent file modes
  342. for all files. When this option is used, if \fBar\fR is used with
  343. identical options and identical input files, multiple runs will create
  344. identical output files regardless of the input files' owners, groups,
  345. file modes, or modification times.
  346. .Sp
  347. If \fIbinutils\fR was configured with
  348. \&\fB\-\-enable\-deterministic\-archives\fR, then this mode is on by default.
  349. It can be disabled with the \fBU\fR modifier, below.
  350. .IP "\fBf\fR" 4
  351. .IX Item "f"
  352. Truncate names in the archive. \s-1GNU\s0 \fBar\fR will normally permit file
  353. names of any length. This will cause it to create archives which are
  354. not compatible with the native \fBar\fR program on some systems. If
  355. this is a concern, the \fBf\fR modifier may be used to truncate file
  356. names when putting them in the archive.
  357. .IP "\fBi\fR" 4
  358. .IX Item "i"
  359. Insert new files \fIbefore\fR an existing member of the
  360. archive. If you use the modifier \fBi\fR, the name of an existing archive
  361. member must be present as the \fIrelpos\fR argument, before the
  362. \&\fIarchive\fR specification. (same as \fBb\fR).
  363. .IP "\fBl\fR" 4
  364. .IX Item "l"
  365. Specify dependencies of this library. The dependencies must immediately
  366. follow this option character, must use the same syntax as the linker
  367. command line, and must be specified within a single argument. I.e., if
  368. multiple items are needed, they must be quoted to form a single command
  369. line argument. For example \fBL \*(L"\-L/usr/local/lib \-lmydep1 \-lmydep2\*(R"\fR
  370. .IP "\fBN\fR" 4
  371. .IX Item "N"
  372. Uses the \fIcount\fR parameter. This is used if there are multiple
  373. entries in the archive with the same name. Extract or delete instance
  374. \&\fIcount\fR of the given name from the archive.
  375. .IP "\fBo\fR" 4
  376. .IX Item "o"
  377. Preserve the \fIoriginal\fR dates of members when extracting them. If
  378. you do not specify this modifier, files extracted from the archive
  379. are stamped with the time of extraction.
  380. .IP "\fBO\fR" 4
  381. .IX Item "O"
  382. Display member offsets inside the archive. Use together with the \fBt\fR
  383. option.
  384. .IP "\fBP\fR" 4
  385. .IX Item "P"
  386. Use the full path name when matching or storing names in the archive.
  387. Archives created with full path names are not \s-1POSIX\s0 compliant, and
  388. thus may not work with tools other than up to date \s-1GNU\s0 tools.
  389. Modifying such archives with \s-1GNU\s0 \fBar\fR without using
  390. \&\fBP\fR will remove the full path names unless the archive is a
  391. thin archive. Note that \fBP\fR may be useful when adding files to
  392. a thin archive since \fBr\fR without \fBP\fR ignores the path
  393. when choosing which element to replace. Thus
  394. .Sp
  395. .Vb 1
  396. \& ar rcST archive.a subdir/file1 subdir/file2 file1
  397. .Ve
  398. .Sp
  399. will result in the first \f(CW\*(C`subdir/file1\*(C'\fR being replaced with
  400. \&\f(CW\*(C`file1\*(C'\fR from the current directory. Adding \fBP\fR will
  401. prevent this replacement.
  402. .IP "\fBs\fR" 4
  403. .IX Item "s"
  404. Write an object-file index into the archive, or update an existing one,
  405. even if no other change is made to the archive. You may use this modifier
  406. flag either with any operation, or alone. Running \fBar s\fR on an
  407. archive is equivalent to running \fBranlib\fR on it.
  408. .IP "\fBS\fR" 4
  409. .IX Item "S"
  410. Do not generate an archive symbol table. This can speed up building a
  411. large library in several steps. The resulting archive can not be used
  412. with the linker. In order to build a symbol table, you must omit the
  413. \&\fBS\fR modifier on the last execution of \fBar\fR, or you must run
  414. \&\fBranlib\fR on the archive.
  415. .IP "\fBT\fR" 4
  416. .IX Item "T"
  417. Make the specified \fIarchive\fR a \fIthin\fR archive. If it already
  418. exists and is a regular archive, the existing members must be present
  419. in the same directory as \fIarchive\fR.
  420. .IP "\fBu\fR" 4
  421. .IX Item "u"
  422. Normally, \fBar r\fR... inserts all files
  423. listed into the archive. If you would like to insert \fIonly\fR those
  424. of the files you list that are newer than existing members of the same
  425. names, use this modifier. The \fBu\fR modifier is allowed only for the
  426. operation \fBr\fR (replace). In particular, the combination \fBqu\fR is
  427. not allowed, since checking the timestamps would lose any speed
  428. advantage from the operation \fBq\fR.
  429. .IP "\fBU\fR" 4
  430. .IX Item "U"
  431. Do \fInot\fR operate in \fIdeterministic\fR mode. This is the inverse
  432. of the \fBD\fR modifier, above: added files and the archive index will
  433. get their actual \s-1UID, GID,\s0 timestamp, and file mode values.
  434. .Sp
  435. This is the default unless \fIbinutils\fR was configured with
  436. \&\fB\-\-enable\-deterministic\-archives\fR.
  437. .IP "\fBv\fR" 4
  438. .IX Item "v"
  439. This modifier requests the \fIverbose\fR version of an operation. Many
  440. operations display additional information, such as filenames processed,
  441. when the modifier \fBv\fR is appended.
  442. .IP "\fBV\fR" 4
  443. .IX Item "V"
  444. This modifier shows the version number of \fBar\fR.
  445. .PP
  446. The \fBar\fR program also supports some command-line options which
  447. are neither modifiers nor actions, but which do change its behaviour
  448. in specific ways:
  449. .IP "\fB\-\-help\fR" 4
  450. .IX Item "--help"
  451. Displays the list of command-line options supported by \fBar\fR
  452. and then exits.
  453. .IP "\fB\-\-version\fR" 4
  454. .IX Item "--version"
  455. Displays the version information of \fBar\fR and then exits.
  456. .IP "\fB\-X32_64\fR" 4
  457. .IX Item "-X32_64"
  458. \&\fBar\fR ignores an initial option spelled \fB\-X32_64\fR, for
  459. compatibility with \s-1AIX.\s0 The behaviour produced by this option is the
  460. default for \s-1GNU\s0 \fBar\fR. \fBar\fR does not support any
  461. of the other \fB\-X\fR options; in particular, it does not support
  462. \&\fB\-X32\fR which is the default for \s-1AIX\s0 \fBar\fR.
  463. .IP "\fB\-\-plugin\fR \fIname\fR" 4
  464. .IX Item "--plugin name"
  465. The optional command-line switch \fB\-\-plugin\fR \fIname\fR causes
  466. \&\fBar\fR to load the plugin called \fIname\fR which adds support
  467. for more file formats, including object files with link-time
  468. optimization information.
  469. .Sp
  470. This option is only available if the toolchain has been built with
  471. plugin support enabled.
  472. .Sp
  473. If \fB\-\-plugin\fR is not provided, but plugin support has been
  474. enabled then \fBar\fR iterates over the files in
  475. \&\fI${libdir}/bfd\-plugins\fR in alphabetic order and the first
  476. plugin that claims the object in question is used.
  477. .Sp
  478. Please note that this plugin search directory is \fInot\fR the one
  479. used by \fBld\fR's \fB\-plugin\fR option. In order to make
  480. \&\fBar\fR use the linker plugin it must be copied into the
  481. \&\fI${libdir}/bfd\-plugins\fR directory. For \s-1GCC\s0 based compilations
  482. the linker plugin is called \fIliblto_plugin.so.0.0.0\fR. For Clang
  483. based compilations it is called \fILLVMgold.so\fR. The \s-1GCC\s0 plugin
  484. is always backwards compatible with earlier versions, so it is
  485. sufficient to just copy the newest one.
  486. .IP "\fB\-\-target\fR \fItarget\fR" 4
  487. .IX Item "--target target"
  488. The optional command-line switch \fB\-\-target\fR \fIbfdname\fR
  489. specifies that the archive members are in an object code format
  490. different from your system's default format. See
  491. .IP "\fB\-\-output\fR \fIdirname\fR" 4
  492. .IX Item "--output dirname"
  493. The \fB\-\-output\fR option can be used to specify a path to a
  494. directory into which archive members should be extracted. If this
  495. option is not specified then the current directory will be used.
  496. .Sp
  497. Note \- although the presence of this option does imply a \fBx\fR
  498. extraction operation that option must still be included on the command
  499. line.
  500. .IP "\fB\-\-record\-libdeps\fR \fIlibdeps\fR" 4
  501. .IX Item "--record-libdeps libdeps"
  502. The \fB\-\-record\-libdeps\fR option is identical to the \fBl\fR modifier,
  503. just handled in long form.
  504. .IP "\fB@\fR\fIfile\fR" 4
  505. .IX Item "@file"
  506. Read command-line options from \fIfile\fR. The options read are
  507. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  508. does not exist, or cannot be read, then the option will be treated
  509. literally, and not removed.
  510. .Sp
  511. Options in \fIfile\fR are separated by whitespace. A whitespace
  512. character may be included in an option by surrounding the entire
  513. option in either single or double quotes. Any character (including a
  514. backslash) may be included by prefixing the character to be included
  515. with a backslash. The \fIfile\fR may itself contain additional
  516. @\fIfile\fR options; any such options will be processed recursively.
  517. .SH "SEE ALSO"
  518. .IX Header "SEE ALSO"
  519. \&\fInm\fR\|(1), \fIranlib\fR\|(1), and the Info entries for \fIbinutils\fR.
  520. .SH "COPYRIGHT"
  521. .IX Header "COPYRIGHT"
  522. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  523. .PP
  524. Permission is granted to copy, distribute and/or modify this document
  525. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  526. or any later version published by the Free Software Foundation;
  527. with no Invariant Sections, with no Front-Cover Texts, and with no
  528. Back-Cover Texts. A copy of the license is included in the
  529. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".