git: 28a6e1beea0e - stable/12 - lorder: process read-only data symbols
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Oct 2021 00:38:16 UTC
The branch stable/12 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=28a6e1beea0e179a5a52b338b8ea44a0766fd968
commit 28a6e1beea0e179a5a52b338b8ea44a0766fd968
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-10-18 21:19:53 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-10-25 00:37:56 +0000
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
(cherry picked from commit e1d6d6f9249d37c10a0df68024c7dacebdc7bf98)
---
usr.bin/lorder/lorder.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/usr.bin/lorder/lorder.sh b/usr.bin/lorder/lorder.sh
index 390b0b7fe845..676f8995fc92 100644
--- a/usr.bin/lorder/lorder.sh
+++ b/usr.bin/lorder/lorder.sh
@@ -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
}