📄 arm-linux-ar.1
字号:
.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14.\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings. \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote. | will give a.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'.\" expand to `' in nroff, nothing in troff, for use with C<>..tr \(*W-|\(bv\*(Tr.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\. ds -- \(*W-. ds PI pi. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch. ds L" "". ds R" "". ds C` "". ds C' ""'br\}.el\{\. ds -- \|\(em\|. ds PI \(*p. ds L" ``. ds R" '''br\}.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD. Of course, you'll have to process the.\" output yourself in some meaningful fashion..if \nF \{\. de IX. tm Index:\\$1\t\\n%\t"\\$2"... nr % 0. rr F.\}.\".\" For nroff, turn off justification. Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..hy 0.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff.if n \{\. ds #H 0. ds #V .8m. ds #F .3m. ds #[ \f1. ds #] \fP.\}.if t \{\. ds #H ((1u-(\\\\n(.fu%2u))*.13m). ds #V .6m. ds #F 0. ds #[ \&. ds #] \&.\}. \" simple accents for nroff and troff.if n \{\. ds ' \&. ds ` \&. ds ^ \&. ds , \&. ds ~ ~. ds /.\}.if t \{\. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u". ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}. \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E. \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'. \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\. ds : e. ds 8 ss. ds o a. ds d- d\h'-1'\(ga. ds D- D\h'-1'\(hy. ds th \o'bp'. ds Th \o'LP'. ds ae ae. ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "AR 1".TH AR 1 "2005-04-20" "binutils-2.15.97" "GNU Development Tools".SH "NAME"ar \- create, modify, and extract from archives.SH "SYNOPSIS".IX Header "SYNOPSIS"ar [\fB\-X32_64\fR] [\fB\-\fR]\fIp\fR[\fImod\fR [\fIrelpos\fR] [\fIcount\fR]] \fIarchive\fR [\fImember\fR...].SH "DESCRIPTION".IX Header "DESCRIPTION"The \s-1GNU\s0 \fBar\fR program creates, modifies, and extracts fromarchives. An \fIarchive\fR is a single file holding a collection ofother files in a structure that makes it possible to retrievethe original individual files (called \fImembers\fR of the archive)..PPThe original files' contents, mode (permissions), timestamp, owner, andgroup are preserved in the archive, and can be restored onextraction. .PP\&\s-1GNU\s0 \fBar\fR can maintain archives whose members have names of anylength; however, depending on how \fBar\fR is configured on yoursystem, a limit on member-name length may be imposed for compatibilitywith archive formats maintained with other tools. If it exists, thelimit is often 15 characters (typical of formats related to a.out) or 16characters (typical of formats related to coff)..PP\&\fBar\fR is considered a binary utility because archives of this sortare most often used as \fIlibraries\fR holding commonly neededsubroutines..PP\&\fBar\fR creates an index to the symbols defined in relocatableobject modules in the archive when you specify the modifier \fBs\fR.Once created, this index is updated in the archive whenever \fBar\fRmakes a change to its contents (save for the \fBq\fR update operation).An archive with such an index speeds up linking to the library, andallows routines in the library to call each other without regard totheir placement in the archive..PPYou may use \fBnm \-s\fR or \fBnm \-\-print\-armap\fR to list this indextable. If an archive lacks the table, another form of \fBar\fR called\&\fBranlib\fR can be used to add just the table..PP\&\s-1GNU\s0 \fBar\fR is designed to be compatible with two differentfacilities. You can control its activity using command-line options,like the different varieties of \fBar\fR on Unix systems; or, if youspecify the single command-line option \fB\-M\fR, you can control itwith a script supplied via standard input, like the \s-1MRI\s0 ``librarian''program..SH "OPTIONS".IX Header "OPTIONS"\&\s-1GNU\s0 \fBar\fR allows you to mix the operation code \fIp\fR and modifierflags \fImod\fR in any order, within the first command-line argument..PPIf you wish, you may begin the first command-line argument with adash..PPThe \fIp\fR keyletter specifies what operation to execute; it may beany of the following, but you must specify only one of them:.IP "\fBd\fR" 4.IX Item "d"\&\fIDelete\fR modules from the archive. Specify the names of modules tobe deleted as \fImember\fR...; the archive is untouched if youspecify no files to delete..SpIf you specify the \fBv\fR modifier, \fBar\fR lists each moduleas it is deleted..IP "\fBm\fR" 4.IX Item "m"Use this operation to \fImove\fR members in an archive..SpThe ordering of members in an archive can make a difference in howprograms are linked using the library, if a symbol is defined in morethan one member. .SpIf no modifiers are used with \f(CW\*(C`m\*(C'\fR, any members you name in the\&\fImember\fR arguments are moved to the \fIend\fR of the archive;you can use the \fBa\fR, \fBb\fR, or \fBi\fR modifiers to move them to aspecified place instead..IP "\fBp\fR" 4.IX Item "p"\&\fIPrint\fR the specified members of the archive, to the standardoutput file. If the \fBv\fR modifier is specified, show the membername before copying its contents to standard output..SpIf you specify no \fImember\fR arguments, all the files in the archive areprinted..IP "\fBq\fR" 4.IX Item "q"\&\fIQuick append\fR; Historically, add the files \fImember\fR... to the end of\&\fIarchive\fR, without checking for replacement..SpThe modifiers \fBa\fR, \fBb\fR, and \fBi\fR do \fInot\fR affect thisoperation; new members are always placed at the end of the archive..SpThe modifier \fBv\fR makes \fBar\fR list each file as it is appended..SpSince the point of this operation is speed, the archive's symbol tableindex is not updated, even if it already existed; you can use \fBar s\fR or\&\fBranlib\fR explicitly to update the symbol table index..SpHowever, too many different systems assume quick append rebuilds theindex, so \s-1GNU\s0 \fBar\fR implements \fBq\fR as a synonym for \fBr\fR..IP "\fBr\fR" 4.IX Item "r"Insert the files \fImember\fR... into \fIarchive\fR (with\&\fIreplacement\fR). This operation differs from \fBq\fR in that anypreviously existing members are deleted if their names match those beingadded..SpIf one of the files named in \fImember\fR... does not exist, \fBar\fRdisplays an error message, and leaves undisturbed any existing membersof the archive matching that name..SpBy default, new members are added at the end of the file; but you mayuse one of the modifiers \fBa\fR, \fBb\fR, or \fBi\fR to requestplacement relative to some existing member..SpThe modifier \fBv\fR used with this operation elicits a line ofoutput for each file inserted, along with one of the letters \fBa\fR or\&\fBr\fR to indicate whether the file was appended (no old memberdeleted) or replaced..IP "\fBt\fR" 4.IX Item "t"Display a \fItable\fR listing the contents of \fIarchive\fR, or thoseof the files listed in \fImember\fR... that are present in thearchive. Normally only the member name is shown; if you also want tosee the modes (permissions), timestamp, owner, group, and size, you canrequest that by also specifying the \fBv\fR modifier..SpIf you do not specify a \fImember\fR, all files in the archiveare listed..SpIf there is more than one file with the same name (say, \fBfie\fR) inan archive (say \fBb.a\fR), \fBar t b.a fie\fR lists only thefirst instance; to see them all, you must ask for a completelisting\-\-\-in our example, \fBar t b.a\fR..IP "\fBx\fR" 4.IX Item "x"\&\fIExtract\fR members (named \fImember\fR) from the archive. You canuse the \fBv\fR modifier with this operation, to request that\&\fBar\fR list each name as it extracts it..SpIf you do not specify a \fImember\fR, all files in the archiveare extracted..PPA number of modifiers (\fImod\fR) may immediately follow the \fIp\fRkeyletter, to specify variations on an operation's behavior:.IP "\fBa\fR" 4.IX Item "a"Add new files \fIafter\fR an existing member of thearchive. If you use the modifier \fBa\fR, the name of an existing archivemember must be present as the \fIrelpos\fR argument, before the\&\fIarchive\fR specification..IP "\fBb\fR" 4.IX Item "b"Add new files \fIbefore\fR an existing member of thearchive. If you use the modifier \fBb\fR, the name of an existing archivemember must be present as the \fIrelpos\fR argument, before the\&\fIarchive\fR specification. (same as \fBi\fR)..IP "\fBc\fR" 4.IX Item "c"\&\fICreate\fR the archive. The specified \fIarchive\fR is alwayscreated if it did not exist, when you request an update. But a warning isissued unless you specify in advance that you expect to create it, byusing this modifier..IP "\fBf\fR" 4.IX Item "f"Truncate names in the archive. \s-1GNU\s0 \fBar\fR will normally permit filenames of any length. This will cause it to create archives which arenot compatible with the native \fBar\fR program on some systems. Ifthis is a concern, the \fBf\fR modifier may be used to truncate filenames when putting them in the archive..IP "\fBi\fR" 4.IX Item "i"Insert new files \fIbefore\fR an existing member of thearchive. If you use the modifier \fBi\fR, the name of an existing archivemember must be present as the \fIrelpos\fR argument, before the\&\fIarchive\fR specification. (same as \fBb\fR)..IP "\fBl\fR" 4.IX Item "l"This modifier is accepted but not used..IP "\fBN\fR" 4.IX Item "N"Uses the \fIcount\fR parameter. This is used if there are multipleentries in the archive with the same name. Extract or delete instance\&\fIcount\fR of the given name from the archive..IP "\fBo\fR" 4.IX Item "o"Preserve the \fIoriginal\fR dates of members when extracting them. Ifyou do not specify this modifier, files extracted from the archiveare stamped with the time of extraction..IP "\fBP\fR" 4.IX Item "P"Use the full path name when matching names in the archive. \s-1GNU\s0\&\fBar\fR can not create an archive with a full path name (such archivesare not \s-1POSIX\s0 complaint), but other archive creators can. This optionwill cause \s-1GNU\s0 \fBar\fR to match file names using a complete pathname, which can be convenient when extracting a single file from anarchive created by another tool..IP "\fBs\fR" 4.IX Item "s"Write an object-file index into the archive, or update an existing one,even if no other change is made to the archive. You may use this modifierflag either with any operation, or alone. Running \fBar s\fR on anarchive is equivalent to running \fBranlib\fR on it..IP "\fBS\fR" 4.IX Item "S"Do not generate an archive symbol table. This can speed up building alarge library in several steps. The resulting archive can not be usedwith the linker. In order to build a symbol table, you must omit the\&\fBS\fR modifier on the last execution of \fBar\fR, or you must run\&\fBranlib\fR on the archive..IP "\fBu\fR" 4.IX Item "u"Normally, \fBar r\fR... inserts all fileslisted into the archive. If you would like to insert \fIonly\fR thoseof the files you list that are newer than existing members of the samenames, use this modifier. The \fBu\fR modifier is allowed only for theoperation \fBr\fR (replace). In particular, the combination \fBqu\fR isnot allowed, since checking the timestamps would lose any speedadvantage from the operation \fBq\fR..IP "\fBv\fR" 4.IX Item "v"This modifier requests the \fIverbose\fR version of an operation. Manyoperations display additional information, such as filenames processed,when the modifier \fBv\fR is appended..IP "\fBV\fR" 4.IX Item "V"This modifier shows the version number of \fBar\fR..PP\&\fBar\fR ignores an initial option spelt \fB\-X32_64\fR, forcompatibility with \s-1AIX\s0. The behaviour produced by this option is thedefault for \s-1GNU\s0 \fBar\fR. \fBar\fR does not support any of the other\&\fB\-X\fR options; in particular, it does not support \fB\-X32\fRwhich is the default for \s-1AIX\s0 \fBar\fR..SH "SEE ALSO".IX Header "SEE ALSO"\&\fInm\fR\|(1), \fIranlib\fR\|(1), and the Info entries for \fIbinutils\fR..SH "COPYRIGHT".IX Header "COPYRIGHT"Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc..PPPermission is granted to copy, distribute and/or modify this documentunder the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1or any later version published by the Free Software Foundation;with no Invariant Sections, with no Front-Cover Texts, and with noBack-Cover Texts. A copy of the license is included in thesection entitled ``\s-1GNU\s0 Free Documentation License''.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -