|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 478 (0x1de)
Types: TextFile
Notes: @(#)lorder.sh 13.1 (RC International) 91/02/02
Names: »lorder«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/bin/lorder«
#! /bin/sh
#
# @(#)lorder.sh 13.1 (RC International) 91/02/02
#
trap "rm -f $$sym?ef; exit" 0 1 2 13 15
case $# in
0) echo usage: lorder file ...
exit ;;
1) case $1 in
*.o) set $1 $1
esac
esac
nm -g $* | sed '
/^$/d
/:$/{
/\.o:/!d
s/://
h
s/.*/& &/
p
d
}
/N /d
/[TDBGSRACE] /{
s/.* //
G
s/\n/ /
w '$$symdef'
d
}
s/.* //
G
s/\n/ /
w '$$symref'
d
'
sort $$symdef -o $$symdef
sort $$symref -o $$symref
join $$symref $$symdef | sed 's/[^ ]* *//'