From: Keith Owens <kaos@ocs.com.au>
To: Jesper Juhl <juhl@eisenstein.dk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Strange warnings about .modinfo when compiling 2.2.18 on Alpha
Date: Thu, 21 Dec 2000 17:56:40 +1100 [thread overview]
Message-ID: <5806.977381800@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Tue, 19 Dec 2000 15:20:17 GMT." <20001219.15201700@jju.hyggekrogen.dk>
On Tue, 19 Dec 2000 15:20:17 GMT,
Jesper Juhl <juhl@eisenstein.dk> wrote:
>I just compiled 2.2.18 for my AlphaServer 400 4/233, and noticed a lot of
>messages like the following during the compile, they all contain the
>'Ignoring changed section attributes for .modinfo' part:
The way .modinfo is created is a kludge to prevent the .modinfo section
being loaded as part of the module. The initial reference to .modinfo
creates it as non-allocated, later references try to allocate data in
the section. Older versions of gcc silently ignored the mismatch,
newer ones warn about the mismatch.
modutils >= 2.3.19 makes sure that .modinfo is not loaded so the kernel
kludge is no longer required. Alan Cox (quite rightly) will not force
2.2 users to upgrade modutils, but if you jump to modutils 2.3.23 and
apply this patch against kernel 2.2.18 then the warnings will disappear.
Index: 18.1/include/linux/module.h
--- 18.1/include/linux/module.h Tue, 12 Sep 2000 13:37:17 +1100 kaos (linux-2.2/F/51_module.h 1.1.7.2 644)
+++ 18.1(w)/include/linux/module.h Thu, 21 Dec 2000 17:55:23 +1100 kaos (linux-2.2/F/51_module.h 1.1.7.2 644)
@@ -190,11 +190,6 @@ const char __module_parm_desc_##var[] \
__attribute__((section(".modinfo"))) = \
"parm_desc_" __MODULE_STRING(var) "=" desc
-/* The attributes of a section are set the first time the section is
- seen; we want .modinfo to not be allocated. */
-
-__asm__(".section .modinfo\n\t.previous");
-
/* Define the module variable, and usage macros. */
extern struct module __this_module;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-12-21 7:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-19 15:20 Jesper Juhl
2000-12-21 6:56 ` Keith Owens [this message]
2000-12-21 11:07 ` Jesper Juhl <juhl@eisenstein.dk>
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=5806.977381800@kao2.melbourne.sgi.com \
--to=kaos@ocs.com.au \
--cc=juhl@eisenstein.dk \
--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
all inboxes | Powered by JetHome®