xref: /original-bsd/usr.bin/lorder/lorder.1 (revision 27f6e8d8)
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)lorder.1	6.6 (Berkeley) 03/14/91
7.\"
8.Vx
9.Vx
10.Dd
11.Dt LORDER 1
12.Os
13.Sh NAME
14.Nm lorder
15.Nd list dependencies for object files
16.Sh SYNOPSIS
17.Nm lorder
18.Ar file ...
19.Sh DESCRIPTION
20The
21.Nm lorder
22utility uses
23.Xr nm  1
24to determine interdependencies in the list of object files
25specified on the command line.
26.Nm Lorder
27outputs a list of file names where the first file contains a symbol
28which is defined by the second file.
29.Pp
30The output is normally used with
31.Xr tsort  1
32when a library is created to determine the optimum ordering of the
33object modules so that all references may be resolved in a single
34pass of the loader.
35.Sh EXAMPLES
36.Pp
37.Dl ar cr library.a `lorder ${OBJS}  tsort`
38.Sh SEE ALSO
39.Xr ar 1 ,
40.Xr ld 1 ,
41.Xr nm 1 ,
42.Xr ranlib 1 ,
43.Xr tsort 1
44.Sh HISTORY
45.Nm Lorder
46appeared in Version 7 AT&T Unix.
47