converted man page
[unix-history] / usr / src / usr.bin / ranlib / ranlib.1
CommitLineData
dd9e2e8d
CL
1.\" Copyright (c) 1990 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
14b55ac4 4.\"
dd9e2e8d
CL
5.\" @(#)ranlib.1 6.3 (Berkeley) %G%
6.\"
7.Dt RANLIB 1
8.Os ATT 7th
9.Sh NAME
10.Nm ranlib
11.Nd convert archives to random libraries
12.Sh SYNOPSIS
13.Nm ranlib
14.Op Fl t
15.Ar archive ...
16.Sh DESCRIPTION
17.Nm Ranlib
14b55ac4 18converts each
dd9e2e8d 19.Ar archive
06541c90 20to a form which the loader can load more rapidly.
dd9e2e8d
CL
21.Nm Ranlib
22does this by adding a table of contents called
23.Sy \&__.SYMDEF
14b55ac4 24to the beginning of the archive.
dd9e2e8d
CL
25.Nm Ranlib
26uses
27.Xr ar 1
06541c90
KM
28to reconstruct the archive, so that sufficient temporary file space must
29be available in the file system which contains the current directory.
dd9e2e8d
CL
30.Pp
31.Tp Fl t
32Ranlib only "touches" the archives and does not modify them.
3f49374c
KM
33This is useful after copying an archive
34or using the
dd9e2e8d 35.Fl t
3f49374c 36option of
dd9e2e8d 37.Xr make 1
3f49374c 38in order to avoid having
dd9e2e8d 39.Xr ld 1
3f49374c 40complain about
dd9e2e8d
CL
41an
42.Dq out of date
43symbol table.
44.Tp
45.Sh SEE ALSO
46.Xr ld 1 ,
47.Xr ar 1 ,
48.Xr lorder 1 ,
49.Xr make 1
50.Sh HISTORY
51.Nm Ranlib
52appeared in Version 7 AT&T UNIX.
53.Sh BUGS
14b55ac4 54Because generation of a library by
dd9e2e8d 55.Xr ar
06541c90 56and randomization of the library by
dd9e2e8d 57.Nm ranlib
06541c90 58are separate processes, phase errors are possible. The loader,
dd9e2e8d 59.Xr ld ,
06541c90
KM
60warns when the modification date of a library is more recent than the
61creation date of its dictionary; but this means that you get the
62warning even if you only copy the library.