Currently, System.map contains a significant number of automatically
generated symbols.  These symbols are unnecessary for debugging since
they represent individual elements of the exported symbol and PCI device
tables, yet represent about 60% of the symbols in System.map.  This
patch adds a filter to remove these symbols.  In doing so, I split out
the filter patterns to a seperate file, avoiding more clutter in the
Makefile.

-rw-rw-r--   1 bgerst   bgerst     425382 Sep 20 13:30 System.map
-rw-rw-r--   1 bgerst   bgerst     196986 Sep 20 13:31 System.map

-- 

                                                Brian Gerst
diff -urN linux-2.4.0t9p4/Makefile linux/Makefile
--- linux-2.4.0t9p4/Makefile    Tue Sep 19 09:48:26 2000
+++ linux/Makefile      Wed Sep 20 12:28:56 2000
@@ -208,7 +208,7 @@
                $(LIBS) \
                --end-group \
                -o vmlinux
-       $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] 
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
+       $(NM) vmlinux | grep -v -f scripts/System.map-filter | sort > System.map
 
 symlinks:
        rm -f include/asm
diff -urN linux-2.4.0t9p4/scripts/System.map-filter linux/scripts/System.map-filter
--- linux-2.4.0t9p4/scripts/System.map-filter   Wed Dec 31 19:00:00 1969
+++ linux/scripts/System.map-filter     Wed Sep 20 11:47:50 2000
@@ -0,0 +1,10 @@
+compiled
+\.o$
+ [aU] 
+\.\.ng$
+LASH[RL]DI
+__kstrtab_
+__ksymtab_
+__vendorstr_
+__devicestr_
+__devices_

Reply via email to