Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
lorder(1)			 User Commands			     lorder(1)

NAME
       lorder -	find ordering relation for an object or	library	archive

SYNOPSIS
       lorder filename...

DESCRIPTION
       The  input  is  one  or	more  object or	library	archive	filenames (see
       ar(1)).	The standard output is a list of pairs of object file  or  ar-
       chive member names; the first file of the pair refers to	external iden-
       tifiers defined in the second. The output may be	processed by  tsort(1)
       to  find	 an  ordering of a library suitable for	one-pass access	by ld.
       Note that the link editor ld is capable of multiple passes over an  ar-
       chive  in  the portable archive format (see ar(3HEAD)) and does not re-
       quire that lorder be used when building an archive.  The	usage of   the
       lorder  command	may, however, allow for	a more efficient access	of the
       archive during the link edit process.

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

	      ar -cr library `lorder *.o | tsort`

FILES
       TMPDIR/*symref
	     temporary files

       TMPDIR/*symdef
	     temporary files

       TMPDIR
	     usually /var/tmp but can be redefined by setting the  environment
	     variable  TMPDIR (see tempnam() in	tmpnam(3C))

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       +-----------------------------+-----------------------------+
       |      ATTRIBUTE	TYPE	     |	    ATTRIBUTE VALUE	   |
       +-----------------------------+-----------------------------+
       |Availability		     |SUNWbtool			   |
       +-----------------------------+-----------------------------+

SEE ALSO
       ar(1), ld(1), tsort(1), tmpnam(3C), ar(3HEAD), attributes(5)

NOTES
       lorder  will  accept 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  length  of	the filename for TMPDIR	is limited to whatever sed al-
       lows.

SunOS 5.9			  29 Oct 1991			     lorder(1)

NAME | SYNOPSIS | DESCRIPTION | FILES | ATTRIBUTES | SEE ALSO | NOTES

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lorder&sektion=1&manpath=SunOS+5.9>

home | help