MC68LORDER(1)

NAME
mc68lorder - find ordering relation for an object library

SYNOPSIS
mc68lorder file ...

DESCRIPTION
The input is one or more object or library archive files [see mc68ar(1)]. The standard output is a list of pairs of object file names, meaning that the first file of the pair refers to external identifiers defined in the second file. The output may be processed by tsort(1) to find an ordering of a library suitable for one-pass access by mc68ld(1). Note that the link editor mc68ld(1) is capable of multiple passes over an archive in the portable archive format [see ar(4)] and does not require that mc68lorder(1) be used when building an archive. The usage of the mc68lorder(1) command may, however, allow for a slightly more efficient access of the archive during the link edit process.

The following example builds a new library from existing .o files.

    mc68ar cr library `mc68lorder *.o | tsort`

FILES
*symref, *symdef    temporary files

SEE ALSO
mc68ar(1), mc68ld(1).
ar(4) in the UNIX System V Programmer's Reference Manual.
tsort(1) in the UNIX System V User Reference Manual.

BUGS
Object files whose names do not end with .o, even when contained in library archives, are overlooked. The global symbols and references are attributed to some other file.