xref: /minix3/usr.bin/lorder/lorder.1 (revision d71cc7b9f698d5e0edd9d57b3d9bd9975670f144)
1*d71cc7b9SLionel Sambuc.\"	$NetBSD: lorder.1,v 1.8 2012/03/22 07:58:19 wiz Exp $
2*d71cc7b9SLionel Sambuc.\"
3*d71cc7b9SLionel Sambuc.\" Copyright (c) 1990, 1993
4*d71cc7b9SLionel Sambuc.\"	The Regents of the University of California.  All rights reserved.
5*d71cc7b9SLionel Sambuc.\"
6*d71cc7b9SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without
7*d71cc7b9SLionel Sambuc.\" modification, are permitted provided that the following conditions
8*d71cc7b9SLionel Sambuc.\" are met:
9*d71cc7b9SLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright
10*d71cc7b9SLionel Sambuc.\"    notice, this list of conditions and the following disclaimer.
11*d71cc7b9SLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright
12*d71cc7b9SLionel Sambuc.\"    notice, this list of conditions and the following disclaimer in the
13*d71cc7b9SLionel Sambuc.\"    documentation and/or other materials provided with the distribution.
14*d71cc7b9SLionel Sambuc.\" 3. Neither the name of the University nor the names of its contributors
15*d71cc7b9SLionel Sambuc.\"    may be used to endorse or promote products derived from this software
16*d71cc7b9SLionel Sambuc.\"    without specific prior written permission.
17*d71cc7b9SLionel Sambuc.\"
18*d71cc7b9SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19*d71cc7b9SLionel Sambuc.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*d71cc7b9SLionel Sambuc.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*d71cc7b9SLionel Sambuc.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22*d71cc7b9SLionel Sambuc.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23*d71cc7b9SLionel Sambuc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24*d71cc7b9SLionel Sambuc.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25*d71cc7b9SLionel Sambuc.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26*d71cc7b9SLionel Sambuc.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27*d71cc7b9SLionel Sambuc.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28*d71cc7b9SLionel Sambuc.\" SUCH DAMAGE.
29*d71cc7b9SLionel Sambuc.\"
30*d71cc7b9SLionel Sambuc.\"     @(#)lorder.1	8.2 (Berkeley) 4/28/95
31*d71cc7b9SLionel Sambuc.\"
32*d71cc7b9SLionel Sambuc.Dd April 28, 1995
33*d71cc7b9SLionel Sambuc.Dt LORDER 1
34*d71cc7b9SLionel Sambuc.Os
35*d71cc7b9SLionel Sambuc.Sh NAME
36*d71cc7b9SLionel Sambuc.Nm lorder
37*d71cc7b9SLionel Sambuc.Nd list dependencies for object files
38*d71cc7b9SLionel Sambuc.Sh SYNOPSIS
39*d71cc7b9SLionel Sambuc.Nm
40*d71cc7b9SLionel Sambuc.Ar
41*d71cc7b9SLionel Sambuc.Sh DESCRIPTION
42*d71cc7b9SLionel SambucThe
43*d71cc7b9SLionel Sambuc.Nm
44*d71cc7b9SLionel Sambucutility uses
45*d71cc7b9SLionel Sambuc.Xr nm 1
46*d71cc7b9SLionel Sambucto determine interdependencies in the list of object files
47*d71cc7b9SLionel Sambucspecified on the command line.
48*d71cc7b9SLionel Sambuc.Nm
49*d71cc7b9SLionel Sambucoutputs a list of file names where the first file contains a symbol
50*d71cc7b9SLionel Sambucwhich is defined by the second file.
51*d71cc7b9SLionel Sambuc.Pp
52*d71cc7b9SLionel SambucThe output is normally used with
53*d71cc7b9SLionel Sambuc.Xr tsort 1
54*d71cc7b9SLionel Sambucwhen a library is created to determine the optimum ordering of the
55*d71cc7b9SLionel Sambucobject modules so that all references may be resolved in a single
56*d71cc7b9SLionel Sambucpass of the loader.
57*d71cc7b9SLionel Sambuc.Sh EXAMPLES
58*d71cc7b9SLionel Sambuc.Bd -literal -offset indent
59*d71cc7b9SLionel Sambucar cr library.a `lorder ${OBJS} | tsort`
60*d71cc7b9SLionel Sambuc.Ed
61*d71cc7b9SLionel Sambuc.Sh SEE ALSO
62*d71cc7b9SLionel Sambuc.Xr ar 1 ,
63*d71cc7b9SLionel Sambuc.Xr ld 1 ,
64*d71cc7b9SLionel Sambuc.Xr nm 1 ,
65*d71cc7b9SLionel Sambuc.Xr ranlib 1 ,
66*d71cc7b9SLionel Sambuc.Xr tsort 1
67*d71cc7b9SLionel Sambuc.Sh HISTORY
68*d71cc7b9SLionel SambucAn
69*d71cc7b9SLionel Sambuc.Nm
70*d71cc7b9SLionel Sambucutility appeared in
71*d71cc7b9SLionel Sambuc.At v7 .
72