summaryrefslogtreecommitdiff
path: root/uts/debian/patches/uts-syscheck-gnu.patch
blob: 6d5ff39825d3fc826ce520d7c0213b9162cd4aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: use GNU nm with SysV format
 affecting only the "ip" module
Index: b/usr/src/uts/Makefile.targ
===================================================================
--- a/usr/src/uts/Makefile.targ	2014-03-01 22:52:16.097454524 +0400
+++ b/usr/src/uts/Makefile.targ	2014-03-01 22:54:44.115632100 +0400
@@ -329,8 +329,8 @@
 	if [ -f "$(MODULE).global-objs.$$TARG" ]; then \
 		$(GREP) -v '#' $(MODULE).global-objs.$$TARG |$(GREP) . | \
 		    $(SORT) -u > $$MODSYMS.tmp; \
-		$(NM) $$TARG/$(MODULE) |$(GREP) OBJT |$(GREP) -v UNDEF | \
-		    $(CUT) -d'|' -f8 |$(GREP) -v '^___const_' | \
+		$(NM) -f sysv $$TARG/$(MODULE) |$(GREP) OBJECT |$(GREP) -v UND | \
+		    $(CUT) -d'|' -f1 | tr -d ' ' | $(GREP) -v '^___const_' | \
 		    $(GREP) -v '\.[0-9]*$$' |$(SORT) -u \
 		    > $$MODSYMS.tmp.new; \
 		$(DIFF) $$MODSYMS.tmp $$MODSYMS.tmp.new > $$MODSYMS.diff || \