Assuming you still maintain a separate System.map for each kernel, this
one line addition to Makefile will append the current config to the
map. No kernel changes required. Extract the config by "grep CONFIG_
System.map". Is this method was standard, a simple change to syslogd
could extract it automatically. If you don't have a separate
System.map for each kernel, my commiserations.
--- linux-2.1.40/Makefile Sat May 24 23:42:32 1997
+++ linux/Makefile Sat May 24 23:43:38 1997
@@ -182,6 +182,7 @@
$(LIBS) \
-o vmlinux
$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
+ sed -ne "/^CONFIG_/s/^/`sed -ne '/ _end$$/s/ .*//p' System.map` ? /p" .config >> System.map
symlinks:
rm -f include/asm