[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /boot/System.map y la versión del kernel



El vie, 30-11-2001 a las 10:58, Emilio José Padrón González escribió:
> Saludos a todos. Hoy me he dado cuenta (soy un desastre,
> a saber desde cuando pasa) de que al hacer un ps el sistema
> me dice: "Warning: /boot/System.map has an incorrect kernel version"
> 
> ¿A qué es debido? La última vez que recompilé el kernel (2.4.13) fue
> hace semanas y no he notado nada raro (creo). Tengo que cambiar
> el System.map cada vez que se recompila el kernel? o sólo si
> cambio de versión de kernel?

Si utilizas «make-kpkg» para recompilar el kernel y hacerlo paquete te
incluirá este fichero.

> Ah, y aunque ya sé que es RTFM si alguien me pudiera dar una pequeñísima
> idea de qué hace este fichero se lo agradecería.

Al iniciar el kernel obtengo lo siguiente respecto al System.map en
/var/log/syslog:

[...]
kernel: Loaded 14059 symbols from /boot/System.map-2.4.14-17112001.
kernel: Symbols match kernel version 2.4.14.
kernel: Loaded 55 symbols from 5 modules.
[...]

Por lo que me imagino que tendrá algo que ver con la depuración. Mirando
en klogd(8):

[...]
As part of the kernel compilation  process a listing is created which
specified the address locations of important variables and function in
the kernel being compiled. This listing is saved in a file called
System.map in the top of the kernel directory source tree. Using this
listing a kernel developer can determine exactly what the kernel was 
doing when the error condition occurred.
[...]

Attachment: pgpRrspOvY_Ja.pgp
Description: PGP signature


Reply to: