Debian Codegraph @

upstream/fedora-rawhide/man1/ranlib.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.48)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "RANLIB 1"
61 .TH RANLIB 1 2026-05-14 binutils-2.46.50 "GNU Development Tools"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 ranlib \- generate an index to an archive
68 .SH SYNOPSIS
69 .IX Header "SYNOPSIS"
70 ranlib [\fB\-\-plugin\fR \fIname\fR] [\fB\-DhHvVt\fR] \fIarchive\fR
71 .SH DESCRIPTION
72 .IX Header "DESCRIPTION"
73 \&\fBranlib\fR generates an index to the contents of an archive and
74 stores it in the archive. The index lists each symbol defined by a
75 member of an archive that is a relocatable object file.
76 .PP
77 You may use \fBnm \-s\fR or \fBnm \-\-print\-armap\fR to list this index.
78 .PP
79 An archive with such an index speeds up linking to the library.
80 .PP
81 The GNU \fBranlib\fR program is another form of GNU \fBar\fR; running
82 \&\fBranlib\fR is completely equivalent to executing \fBar \-s\fR.
83 .SH OPTIONS
84 .IX Header "OPTIONS"
85 .IP \fB\-h\fR 4
86 .IX Item "-h"
87 .PD 0
88 .IP \fB\-H\fR 4
89 .IX Item "-H"
90 .IP \fB\-\-help\fR 4
91 .IX Item "--help"
92 .PD
93 Show usage information for \fBranlib\fR.
94 .IP \fB\-v\fR 4
95 .IX Item "-v"
96 .PD 0
97 .IP \fB\-V\fR 4
98 .IX Item "-V"
99 .IP \fB\-\-version\fR 4
100 .IX Item "--version"
101 .PD
102 Show the version number of \fBranlib\fR.
103 .IP \fB\-D\fR 4
104 .IX Item "-D"
105 Operate in \fIdeterministic\fR mode. The symbol map archive member\*(Aqs
106 header will show zero for the UID, GID, and timestamp. When this
107 option is used, multiple runs will produce identical output files.
108 .Sp
109 If \fIbinutils\fR was configured with
110 \&\fB\-\-enable\-deterministic\-archives\fR, then this mode is on by
111 default. It can be disabled with the \fB\-U\fR option, described
112 below.
113 .IP \fB\-t\fR 4
114 .IX Item "-t"
115 Update the timestamp of the symbol map of an archive.
116 .IP \fB\-U\fR 4
117 .IX Item "-U"
118 Do \fInot\fR operate in \fIdeterministic\fR mode. This is the
119 inverse of the \fB\-D\fR option, above: the archive index will get
120 actual UID, GID, timestamp, and file mode values.
121 .Sp
122 If \fIbinutils\fR was configured \fIwithout\fR
123 \&\fB\-\-enable\-deterministic\-archives\fR, then this mode is on by
124 default.
125 .IP \fB@\fR\fIfile\fR 4
126 .IX Item "@file"
127 Read command\-line options from \fIfile\fR. The options read are
128 inserted in place of the original @\fIfile\fR option. If \fIfile\fR
129 does not exist, or cannot be read, then the option will be treated
130 literally, and not removed.
131 .Sp
132 Options in \fIfile\fR are separated by whitespace. A whitespace
133 character may be included in an option by surrounding the entire
134 option in either single or double quotes. Any character (including a
135 backslash) may be included by prefixing the character to be included
136 with a backslash. The \fIfile\fR may itself contain additional
137 @\fIfile\fR options; any such options will be processed recursively.
138 .SH "SEE ALSO"
139 .IX Header "SEE ALSO"
140 \&\fBar\fR\|(1), \fBnm\fR\|(1), and the Info entries for \fIbinutils\fR.
141 .SH COPYRIGHT
142 .IX Header "COPYRIGHT"
143 Copyright (c) 1991\-2026 Free Software Foundation, Inc.
144 .PP
145 Permission is granted to copy, distribute and/or modify this document
146 under the terms of the GNU Free Documentation License, Version 1.3
147 or any later version published by the Free Software Foundation;
148 with no Invariant Sections, with no Front\-Cover Texts, and with no
149 Back\-Cover Texts. A copy of the license is included in the
150 section entitled "GNU Free Documentation License".