one line patch to save .config information

Keith Owens (kaos@ocs.com.au)
Sat, 01 Feb 1997 00:48:33 +1100


Rather than save the .config options in the kernel and bloat it, append
them to System.map with the same address as _end. Of course if you
have no map for your current kernel you are in trouble anyway.

The patch might affect code that reads System.map. klogd 1.3-3 does
not object to the extra records.

--- linux-2.1.24/Makefile Thu Jan 30 22:22:57 1997
+++ linux/Makefile Sat Feb 1 00:34:35 1997
@@ -179,6 +179,7 @@
$(LIBS) \
-o vmlinux
$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( a \)\|\(\.\.ng$$\)' | sort > System.map
+ sed -ne "/^CONFIG_/s/^/`sed -ne '/ _end$$/s/ .*//p' System.map` ? /p" .config >> System.map

symlinks:
rm -f include/asm