Re: A question on System.map (for the FAQ please)

Albert D. Cahalan (acahalan@cs.uml.edu)
Tue, 5 Oct 1999 10:52:36 -0400 (EDT)


>> /boot/System.map has an incorrect kernel version. :-)
>> That file is a kind of database that must be kept consistant
>> with the kernel you are currently running.
>>
>> This is of course difficult to do when you run multiple versions
>> of the same kernel. I'd be very happy to spend 80 kB of kernel
>> memory on a reliable answer, especially when considering just how
>> big an uncompressed kernel is already. Oh well.
>
> Ugh, what a waste of kernel space.

With normal custom kernels at 1.5 MB (before compression) already,
I don't see this as a problem. It is likely that the map size could
be reduced much more by elimination of data symbols.

> This can be done just as well from userspace..
> After you've made a kernel..
>
> mv System.map /boot/System.map-`uname -r`
>
> And edit the script which is starting syslog so that just before
> it starts the deamon it it says..
>
> ln -sf /boot/System.map-`uname -r` /boot/System.map

OK, so I have two kernels now. Both are version 2.3.18, both have
the same patches, and both are builds from fresh tarballs. They
differ only by config option. (not an unusual case)

Bad enough? I may as well also mention that the kernel which is
running may have been booted off of a floppy drive or network,
and that / may be a read-only filesystem.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/