SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Rep:
What does the /boot/system.map file do?
I have compiled a smaller kernel for my system a couple of times, and I've had good luck with it most of the time, but I've never done anything with the system.map file.
I saw this helpful and friendly link on the Linux Questions forum, describing how to recompile a kernel in SlackWare, but he just said to copy the system.map file without mentioning what it does. Am I missing something valuable?
You most likely won't ever need it so there is no harm in not copying it over. On the otherhand, it's about 700K so why wouldn't you? Make install copies it btw.
System.map is used by syslogd/klogd for logging the kernel. They look respectively on /, /boot and /lib/modules/`uname -r`/build to find out a proper System.map. They are able to determine automagically the correct version of System.map, so you can have several files around without hurting the system. (it is not necessary you append the kernel version to the file name)
So..it is not strickly necessary you copy it to /boot ('though it doesn't hurt) if you have the kernel sources installed.
In case of lack of a proper System.map you just have problems in case of kernel crash or segfault as you have no logs to check.
System map is also used by some emulators/virtual machines, so if you use one you'd better go with System.map at the right place (usually /boot).
Ciao
The system.map file is a mapping between hexadecimal symbols used by the kernel into human readable function and variable names. As these symbols change with every kernel compile, a new system.map is generated each time.
Unless you are doing crash dump analysis and debugging, I wouldn't worry too much about this file. Just make it good practice to copy the new one to /boot each time you replace your kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.