From: James Bottomley <James.Bottomley@steeleye.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Subject: lib.a causing modules not to load
Date: 07 Nov 2003 10:21:04 -0600 [thread overview]
Message-ID: <1068222065.1894.21.camel@mulgrave> (raw)
I think this has been mentioned before, but I just ran across it again
recently. The problem is that if the only reference to a routine in
lib.a is in a module, then it never gets compiled into the kernel, and
the module won't load.
In 2.6.0-test9 this is shown by compiling both ext2 and ext3 as
modules. Since they're the only things to refer to percpu_counter_mod
which is in lib.a in an SMP system.
The quickest hack I could think of (attached below) was to make ext2
(and ext3 although I didn't code that) incorporate vestigial code into
the discarded init section of the kernel which forces a reference to
percpu_counter_mod and thus makes the kernel pull the required routine
out of lib.a
However, I think the best approach would be, after the kernel has built,
to build the non-included routines of lib.a as individual modules which
would then be pulled in by the module dependency rules.
Unless anyone has a better idea (or has already done something about
this problem), I'll look at doing the latter.
James
next reply other threads:[~2003-11-07 22:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 16:21 James Bottomley [this message]
2003-11-07 16:27 ` lib.a causing modules not to load James Bottomley
2003-11-08 4:34 ` Andrew Morton
2003-11-08 8:51 ` Christoph Hellwig
2003-11-08 15:16 ` James Bottomley
2003-11-17 2:47 ` Rusty Russell
2003-11-18 16:25 ` James Bottomley
2003-11-19 0:06 ` Rusty Russell
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=1068222065.1894.21.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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