Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Aug 2002 18:43:32 +0100
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        current@freebsd.org
Subject:   kmod_syms.awk
Message-ID:   <200208051843.aa43072@salmon.maths.tcd.ie>

next in thread | raw e-mail | index | archive | help

I noticed that kmod_syms.awk takes a long time to run on slow
hardware when compiling modules. It seems the reason is that it is
processing the binary .kld file as a export_syms file because the
ARGIND variable does not exist in our awk.

Any objections to the following workaround?

Ian

Index: kmod_syms.awk
===================================================================
RCS file: /dump/FreeBSD-CVS/src/sys/conf/kmod_syms.awk,v
retrieving revision 1.3
diff -u -r1.3 kmod_syms.awk
--- kmod_syms.awk	19 Apr 2002 09:04:53 -0000	1.3
+++ kmod_syms.awk	5 Aug 2002 17:41:23 -0000
@@ -7,12 +7,11 @@
                         syms[$3] = $2
                 }
         }
+        delete ARGV[1]
 }
 
 # De-list symbols from the export list.
 {
-        if (ARGIND == 1)
-                nextfile
         delete syms[$0]
 }
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200208051843.aa43072>