lorder: process read-only data symbols

Previously they were skipped.  lorder(1) serves no functional purpose
today but we might as well address this longstanding bug while it is
still in the tree.

PR:		133860
MFC after:	1 week
Submitted by:	John Hein
This commit is contained in:
Ed Maste 2021-10-18 17:19:53 -04:00
parent 015ff812d6
commit e1d6d6f924

View File

@ -57,14 +57,14 @@ for i in $*; do
echo $i $i
done
# if the line has " [TDW] " it's a globally defined symbol, put it
# if the line has " [RTDW] " it's a globally defined symbol, put it
# into the symbol file.
#
# if the line has " U " it's a globally undefined symbol, put it into
# the reference file.
${NM} ${NMFLAGS} -go $* | sed "
/ [TDW] / {
s/:.* [TDW] / /
/ [RTDW] / {
s/:.* [RTDW] / /
w $S
d
}