The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Lee Strobel <leestrobel@disroot.org>
To: linux-kernel@vger.kernel.org
Subject: Missing version line in System.map file?
Date: Tue, 28 Nov 2017 22:20:01 -0500	[thread overview]
Message-ID: <1511925601.2895.4.camel@lee-LibreBook> (raw)

Hi,

I have a question about the Linux kernel, which I have been trying to
find an answer to through various forums for some time now, but without
success. I'm wondering if anyone on this mailing list might be able to
help?

I've been trying to build a Linux From Scratch (LFS) system, using
SysVinit and sysklogd. However, when I tried to boot up, klogd wasn't
accepting the System.map file, printing log messages such as:

   Oct 9 17:24:17 <lee_lfs> kernel: klogd 1.5.1, log source = /proc/kmsg
started.
   Oct 9 17:24:17 <lee_lfs> kernel: Inspecting /boot/System.map
   Oct 9 17:24:17 <lee_lfs> kernel: Cannot find map file.

So, I dug into the source code for klogd a little bit, and it appears
the reason the map file wasn't being accepted was because it didn't
contain a 'version' line, which klogd was looking for, in the form:

   [address] [type] Version_XXXXX

(where XXXXX is the kernel version # in base 256).

So, I've been asking around on various forums. It seems that none of the
map files that are being produced by more recent kernel versions include
this line and no-one that I've spoken to on the Linux user forums seems
to know why this is.

Was a change made to the kernel, to remove this 'version' line
from the map file? If so, how are the newer init systems verifying that
the map file is the same version as the running kernel? Perhaps sysklogd
needs to be updated?

By the way, I tried adding a 'dummy' version line to my map file and
klogd accepted it fine.

Hopefully someone out there can assist, as no-one in the Linux user
community seems to know what is going on with this.

Best regards,

Lee Strobel
Engineer/Tinkerer/Free Software Supporter ..

             reply	other threads:[~2017-11-29  3:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-29  3:20 Lee Strobel [this message]
2017-11-29 19:07 ` Missing version line in System.map file? Randy Dunlap
2017-11-29 19:31   ` Randy Dunlap
2017-11-30  2:56     ` Lee Strobel
2017-11-30  3:19       ` Randy Dunlap
2017-11-30 12:24         ` Lee Strobel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1511925601.2895.4.camel@lee-LibreBook \
    --to=leestrobel@disroot.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox