Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lorder(1) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

ld(1)

nm(1)

sed(1)

tsort(1)

ar(0)



  lorder(1)                           CLIX                           lorder(1)



  NAME

    lorder - Finds ordering relation for an object library

  SYNOPSIS

    lorder file ...

  DESCRIPTION

    The lorder command uses one or more object or library archive files (see
    ar) as input and produces on stdout a list of pairs of object file or
    archive member names.  The first file of each pair refers to external
    identifiers defined in the second file.

    The output may be processed by tsort() to find an ordering of a library
    suitable for a one-pass access by ld.  Note that the link editor ld is
    capable of multiple passes over an archive in the portable archive format
    (see ar) and does not require that lorder be used when building an
    archive.  The usage of the lorder command may allow for a slightly more
    efficient access of the archive during the link edit process.

  EXAMPLES

           To build a new library from existing object (.o) files:

           ar -cr library `lorder o | tsort`


  FILES

    $TMPDIR/*symref
           Temporary files.

    $TMPDIR/*symdef
           Temporary files.

    The $TMPDIR is usually /usr/tmp but can be redefined by setting the
    environment variable $TMPDIR (see tempnam() in tmpnam()).

  NOTES

    The lorder command accepts as input any object or archive file, regardless
    of its suffix, provided there is more than one input file.  If there is
    but a single input file, its suffix must be .o.

    The output of lorder is usually used as the input to tsort.

    The lorder command is actually a shell script that uses nm and sed to
    produce its output.




  2/94 - Intergraph Corporation                                              1






  lorder(1)                           CLIX                           lorder(1)



  EXIT VALUES

    Exits with 0 if successful.

  RELATED INFORMATION

    Commands:  ar(1), ld(1), nm(1), sed(1), tsort(1)

    Files:  ar(0)













































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026