157 lines
2.6 KiB
HTML
157 lines
2.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of LORDER</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>LORDER</H1>
|
|
Section: User Commands (1)<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
<BR>BSD mandoc<BR>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
|
|
|
|
<B>lorder</B>
|
|
|
|
- list dependencies for object files
|
|
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B></B>
|
|
|
|
|
|
<I>file ...</I>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B></B>
|
|
|
|
|
|
utility uses
|
|
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1)
|
|
|
|
|
|
to determine interdependencies in the list of object files
|
|
and library archives
|
|
specified on the command line.
|
|
The
|
|
<B></B>
|
|
|
|
|
|
utility outputs a list of file names where the first file contains a symbol
|
|
which is defined by the second file.
|
|
<P>
|
|
|
|
The output is normally used with
|
|
<A HREF="/cgi-bin/man/man2html?1+tsort">tsort</A>(1)
|
|
|
|
|
|
when a library is created to determine the optimum ordering of the
|
|
object modules so that all references may be resolved in a single
|
|
pass of the loader.
|
|
<P>
|
|
|
|
When linking static binaries,
|
|
<B></B>
|
|
|
|
|
|
and
|
|
<A HREF="/cgi-bin/man/man2html?1+tsort">tsort</A>(1)
|
|
|
|
|
|
can be used to properly order library archives automatically.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<DL COMPACT>
|
|
<P>
|
|
|
|
<DT id="1"><B>NM</B>
|
|
|
|
|
|
<DD>
|
|
Path to the
|
|
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1)
|
|
|
|
|
|
binary, defaults to
|
|
``<B>nm</B>
|
|
|
|
''
|
|
|
|
|
|
<DT id="2"><B>NMFLAGS</B>
|
|
|
|
|
|
<DD>
|
|
Flags to pass to
|
|
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1).
|
|
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
|
|
<BLOCKQUOTE>
|
|
<PRE>
|
|
ar cr library.a `lorder ${OBJS} | tsort`
|
|
cc -o foo ${OBJS} `lorder ${STATIC_LIBS} | tsort`
|
|
</PRE>
|
|
</BLOCKQUOTE>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+ar">ar</A>(1),
|
|
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+ld">ld</A>(1),
|
|
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+nm">nm</A>(1),
|
|
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+ranlib">ranlib</A>(1),
|
|
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+tsort">tsort</A>(1)
|
|
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>HISTORY</H2>
|
|
|
|
A
|
|
<B></B>
|
|
|
|
|
|
utility appeared in
|
|
AT&T System
|
|
v7 .
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">ENVIRONMENT</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">EXAMPLES</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="9"><A HREF="#lbAH">HISTORY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:18 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|