lorder
lists dependencies between object files
TLDR
SYNOPSIS
lorder file ...
DESCRIPTION
lorder uses nm to determine interdependencies between the object files and library archives given on its command line. It outputs pairs of file names such that the first file in each pair references at least one symbol defined by the second. Every file is also paired with itself so that it appears in the output.The output is normally piped to tsort to find an ordering in which all references can be resolved in a single pass of the linker.
PARAMETERS
FILE
Object files or library archives to analyze.
ENVIRONMENT
NM
Path to the nm binary (default nm).NMFLAGS
Extra flags passed to nm.
CAVEATS
Modern linkers and ranlib symbol tables make lorder unnecessary; it is kept for legacy build systems. File names containing spaces or newlines are not handled. It ships with the BSDs and macOS but is not part of GNU binutils or util-linux, so most Linux distributions do not include it.
HISTORY
A lorder utility appeared in Version 7 AT&T UNIX (1979) and was carried into the BSD systems.
