1lorder(1)                        User Commands                       lorder(1)
2
3
4

NAME

6       lorder - find ordering relation for an object or library archive
7

SYNOPSIS

9       lorder filename...
10
11

DESCRIPTION

13       The  input  is  one  or  more  object or library archive filenames (see
14       ar(1)). The standard output is a list of pairs of object  file  or  ar‐
15       chive member names; the first file of the pair refers to external iden‐
16       tifiers defined in the second. The output may be processed by  tsort(1)
17       to  find  an  ordering of a library suitable for one-pass access by ld.
18       Note that the link editor ld is capable of multiple passes over an  ar‐
19       chive  in  the  portable  archive format (see ar.h(3HEAD)) and does not
20       require that lorder be used when building an  archive.   The  usage  of
21       the  lorder  command may, however, allow for a more efficient access of
22       the archive during the link edit process.
23
24
25       The following example builds a new library from existing .o files.
26
27
28       ar -cr library `lorder *.o | tsort`
29

FILES

31       TMPDIR/*symref    temporary files
32
33
34       TMPDIR/*symdef    temporary files
35
36
37       TMPDIR            usually /var/tmp but can be redefined by setting  the
38                         environment  variable   TMPDIR (see tempnam() in tmp‐
39                         nam(3C))
40
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Availability                 │SUNWbtool                    │
52       └─────────────────────────────┴─────────────────────────────┘
53

SEE ALSO

55       ar(1), ld(1), tsort(1), tmpnam(3C), ar.h(3HEAD), attributes(5)
56

NOTES

58       lorder will accept as input any object or archive file,  regardless  of
59       its suffix, provided there is more than one input file. If there is but
60       a single input file, its suffix must be .o.
61
62
63       The length of the filename  for  TMPDIR  is  limited  to  whatever  sed
64       allows.
65
66
67
68SunOS 5.11                        29 Oct 1991                        lorder(1)
Impressum