LORDER(1) General Commands Manual LORDER(1)NAME
lorder - find ordering relation for an object library
SYNOPSIS
lorder file ...
DESCRIPTION
The input is one or more object or library archive (see ar(1)) files. 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. The output may be processed by tsort(1) to find an
ordering of a library suitable for one-pass access by ld(1).
This brash one-liner intends to build a new library from existing `.o' files.
ar cr library `lorder *.o | tsort`
The need for lorder may be vitiated by use of ranlib(1), which converts an ordered archive into a randomly accessed library.
FILES
*symref, *symdef
nm(1), sed(1), sort(1), join(1)SEE ALSO tsort(1), ld(1), ar(1), ranlib(1)BUGS
The names of object files, in and out of libraries, must end with `.o'; nonsense results otherwise.
4th Berkeley Distribution April 29, 1985 LORDER(1)
Check Out this Related Man Page
LORDER(1) BSD General Commands Manual LORDER(1)NAME
lorder -- list dependencies for object files
SYNOPSIS
lorder file ...
DESCRIPTION
The lorder utility uses nm(1) to determine interdependencies in the list of object files and library archives specified on the command line.
The lorder utility outputs a list of file names where the first file contains a symbol which is defined by the second file.
The output is normally used with tsort(1) when a library is created to determine the optimum ordering of the object modules so that all ref-
erences may be resolved in a single pass of the loader.
When linking static binaries, lorder and tsort(1) can be used to properly order library archives automatically.
ENVIRONMENT
NM Path to the nm(1) binary, defaults to ``nm''.
EXAMPLES
ar cr library.a `lorder ${OBJS} | tsort`
cc -o foo ${OBJS} `lorder ${STATIC_LIBS} | tsort`
SEE ALSO ar(1), ld(1), nm(1), ranlib(1), tsort(1)HISTORY
A lorder utility appeared in Version 7 AT&T UNIX.
BSD October 25, 2006 BSD
Hi Friends !
I have a library, say libxyz.a.
To view all the object files in the archive, i issued the command :
ar -t libxyz.a
which displayed all the object files it contains.
Now, I would like to know the functions in each object file.
Is there any such command that displays... (3 Replies)
Hi--
Ok. I have now found that:
find -x -ls
will do what I need as far as finding all files on a particular volume. Now I need to sort the results by the file's modification date/time.
Is there a way to do that?
Also, I notice that for many files, whereas the man for find says ls is... (8 Replies)
Hi,
I recieve some XML-files that constantly has bad encoded content. There are Ampersands that are not encoded correctly causing my XML-parser to halt.
I wrote a sed one-liner to fix any stand alone "&":
sed -e 's/&/&/gi' input.xml
testfile for input:
<xml>
<source> " One " </source>... (8 Replies)
hi all,
is there an easy way in ksh to sort the results of a find in say alphabetical order ?? e.g in my script i am doing a find for all servers
find . -name "server.xml"
and the output is not in any order.
thanks in advance. (4 Replies)
Hi,
I'm looking to combine the two commands find and sed together for the work that i'm worknig on.
I need to find the ip addresse in any file from current directory and below, once is found i need to replace it with new ip addresse. Here is what i have but not complete.
Find IP from... (4 Replies)
Hi,
I'm ssh'ing into a server using ruby and sending a one-liner to retrieve the output of the 'ps aux' command. So far, this is what I have:
ps aux | sort -r -n -k3 | sed -e '1s/^/this is first\n/' | head -n10
With this I can insert a line at position 1, but I would rather extract the... (3 Replies)
I have lot of files whose names are something like the following. I want to change the name of all the files from 'npt02' to 'n02'.
npt02-z30-sr65-rgdt0p50-dc0p01-16x12drw.tpf
npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw.back
npt02-z30-sr65-rgdt0p50-dc0p01-8x6drw-bst-mis.xy... (5 Replies)
My server got messed up and the names of my files were not completely processed. As results I ended up getting a bunch of files with the following names:
I need to remove the underscore and everything before it. Thus, the files will be renamed to something like this:
Any help will be greatly... (3 Replies)
Dear All,
I'm working as a DBA and dont have much knowledge at OS level commands.we have requirement that we need find the files which has been last accessed >= apr 2010and also access date <= apr 2010 for a large set of files.Do know some commands likeistat, ls -u.But can anyone provide me the... (4 Replies)
how can i make find/sed to include directory names with spaces
the command is like this
for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l
-iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done
but it skips one directory names with spaces
sed: can't read ./Nova: No such... (5 Replies)
I use the following as an example. I find myself always doing this and I believe my scripts would run much faster if I put the sed results into a place in memory rather than writing to files. Again, its not about sed, its about redirecting to a place in memory rather than an external file.
... (5 Replies)
Hi there, my first post, so you might find my noobness ;)
I need help to fix a thing,
find /mnt/fs01/gfx/ -iname "*.rar" > gfx.txt
Gives this contained textfile:
/mnt/fs01/gfx/toba/toba.rar
/mnt/fs01/gfx/zeta/zimba.rar
/mnt/fs01/gfx/brashe/getha.rar
And now the tricky part (for... (3 Replies)
All,
I am looking for a way to improve this small one liner.
one of the files has this kind of format
public func <<<T>(array: , offset: Int) -> { return array.shiftedLeft(by: offset) }
gsed -i '/public func/i /\/\/\public func \n/\/\==mark==public func' tresults in
///public func ... (5 Replies)
I all
I am tryng to find a way to sort a list of number in a file by the value of last two digit.
i have a list like this
313202320388
333202171199
373202164587
393202143736
323202132208
353201918107
343201887399
363201810249
333201805043
353201791691 (7 Replies)