I just noticed, that the UTS_RELEASE, UTS_VERSION etc. defines are
compiled into the kernel image in arch/i386/setup.S.
however, setup.o does not get updated, during a simple recompile.
the following patch fixes that.
--- linux-old/arch/i386/boot/Makefile
+++ linux/arch/i386/boot/Makefile 1996/05/16 07:40:16
@@ -65,7 +65,7 @@
setup.o: setup.s
$(AS86) -o $@ $<
-setup.s: setup.S video.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
+setup.s: setup.S video.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h $(TOPDIR)/include/linux/compile.h Makefile
$(CPP) -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@
bootsect: bootsect.o
using the following magic(5) entry, they can be made visible via file:
#---------------------------------------------------------------------
# linux Kernel images version 1.3.80 - ?
0 belong 0xb8c0078e Linux/x86 kernel image,
>0x048c byte 0x31
>>0x048c string x version %s
>0x0493 byte 0x31
>>0x0493 string x version %s
#---------------------------------------------------------------------
this seems to work since 1.3.80. i have no older kernel images,
can anyone check this with older ones?
[45|14:48] akohlmey@rincewind:~/linux> file /vmlinuz*
/vmlinuz: Linux/x86 kernel image, version 1.99.5 (akohlmey@rincewind) #1-
/vmlinuz-1.3.100: Linux/x86 kernel image, version 1.3.100 (akohlmey@rincewind) #1
/vmlinuz-pre2.5: Linux/x86 kernel image, version 1.99.5 (akohlmey@rincewind) #1-
/vmlinuz.test: Linux/x86 kernel image, version 1.99.6 (akohlmey@rincewind) #1-
Cheers,
Axel.
=========================================================================
Axel Kohlmeyer email: axel.kohlmeyer@chemie.uni-ulm.de
Abteilung fuer Theoretische Chemie Universitaet Ulm D-89069 Ulm/Donau
=========================================================================