1RANLIB(1)                    GNU Development Tools                   RANLIB(1)
2
3
4

NAME

6       ranlib - generate an index to an archive
7

SYNOPSIS

9       ranlib [--plugin name] [-DhHvVt] archive
10

DESCRIPTION

12       ranlib generates an index to the contents of an archive and stores it
13       in the archive.  The index lists each symbol defined by a member of an
14       archive that is a relocatable object file.
15
16       You may use nm -s or nm --print-armap to list this index.
17
18       An archive with such an index speeds up linking to the library and
19       allows routines in the library to call each other without regard to
20       their placement in the archive.
21
22       The GNU ranlib program is another form of GNU ar; running ranlib is
23       completely equivalent to executing ar -s.
24

OPTIONS

26       -h
27       -H
28       --help
29           Show usage information for ranlib.
30
31       -v
32       -V
33       --version
34           Show the version number of ranlib.
35
36       -D  Operate in deterministic mode.  The symbol map archive member's
37           header will show zero for the UID, GID, and timestamp.  When this
38           option is used, multiple runs will produce identical output files.
39
40           If binutils was configured with --enable-deterministic-archives,
41           then this mode is on by default.  It can be disabled with the -U
42           option, described below.
43
44       -t  Update the timestamp of the symbol map of an archive.
45
46       -U  Do not operate in deterministic mode.  This is the inverse of the
47           -D option, above: the archive index will get actual UID, GID,
48           timestamp, and file mode values.
49
50           If binutils was configured without --enable-deterministic-archives,
51           then this mode is on by default.
52
53       @file
54           Read command-line options from file.  The options read are inserted
55           in place of the original @file option.  If file does not exist, or
56           cannot be read, then the option will be treated literally, and not
57           removed.
58
59           Options in file are separated by whitespace.  A whitespace
60           character may be included in an option by surrounding the entire
61           option in either single or double quotes.  Any character (including
62           a backslash) may be included by prefixing the character to be
63           included with a backslash.  The file may itself contain additional
64           @file options; any such options will be processed recursively.
65

SEE ALSO

67       ar(1), nm(1), and the Info entries for binutils.
68
70       Copyright (c) 1991-2022 Free Software Foundation, Inc.
71
72       Permission is granted to copy, distribute and/or modify this document
73       under the terms of the GNU Free Documentation License, Version 1.3 or
74       any later version published by the Free Software Foundation; with no
75       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
76       Texts.  A copy of the license is included in the section entitled "GNU
77       Free Documentation License".
78
79
80
81binutils-2.38                     2022-07-20                         RANLIB(1)
Impressum