1*3957bea1Swiz.\" $NetBSD: lorder.1,v 1.8 2012/03/22 07:58:19 wiz Exp $ 26d298651Sjtc.\" 36d298651Sjtc.\" Copyright (c) 1990, 1993 46d298651Sjtc.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 1489aaa1bbSagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 304d85334fSjtc.\" @(#)lorder.1 8.2 (Berkeley) 4/28/95 3161f28255Scgd.\" 324d85334fSjtc.Dd April 28, 1995 3361f28255Scgd.Dt LORDER 1 3461f28255Scgd.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm lorder 3761f28255Scgd.Nd list dependencies for object files 3861f28255Scgd.Sh SYNOPSIS 391ebd6d74Slukem.Nm 4061f28255Scgd.Ar 4161f28255Scgd.Sh DESCRIPTION 4261f28255ScgdThe 431ebd6d74Slukem.Nm 4461f28255Scgdutility uses 4561f28255Scgd.Xr nm 1 4661f28255Scgdto determine interdependencies in the list of object files 4761f28255Scgdspecified on the command line. 481ebd6d74Slukem.Nm 4961f28255Scgdoutputs a list of file names where the first file contains a symbol 5061f28255Scgdwhich is defined by the second file. 5161f28255Scgd.Pp 5261f28255ScgdThe output is normally used with 5361f28255Scgd.Xr tsort 1 5461f28255Scgdwhen a library is created to determine the optimum ordering of the 5561f28255Scgdobject modules so that all references may be resolved in a single 5661f28255Scgdpass of the loader. 5761f28255Scgd.Sh EXAMPLES 5861f28255Scgd.Bd -literal -offset indent 59419e05f4Sjtcar cr library.a `lorder ${OBJS} | tsort` 6061f28255Scgd.Ed 6161f28255Scgd.Sh SEE ALSO 6261f28255Scgd.Xr ar 1 , 6361f28255Scgd.Xr ld 1 , 6461f28255Scgd.Xr nm 1 , 6561f28255Scgd.Xr ranlib 1 , 6661f28255Scgd.Xr tsort 1 6761f28255Scgd.Sh HISTORY 6861f28255ScgdAn 691ebd6d74Slukem.Nm 7061f28255Scgdutility appeared in 7161f28255Scgd.At v7 . 72