From: Miles Bader <miles@lsi.nec.co.jp>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Embed __this_module in module itself.
Date: 07 Jan 2003 14:36:54 +0900 [thread overview]
Message-ID: <buoadid1pxl.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <buou1gma6bz.fsf@mcspd15.ucom.lsi.nec.co.jp>
Miles Bader <miles@lsi.nec.co.jp> writes:
> When I try to build modules using 2.5.54, the resulting .ko files lack
> the .gnu.linkonce.* sections, which causes the kernel module loader to
> fail on them -- those sections _are_ present in the .o files, but the
> linker apparently removes them!
Ok, I found out why this is happening -- the v850 default linker
scripts, for whatever reason, merge any section called `.gnu.linker.t*'
with .text.
I can prevent this by adding the option `--unique=.gnu.linkonce.this_module'
to the linker flags (specifically, to LDFLAGS_MODULE in the top-level
Makefile). I suppose another way to do it would be to rename the
section something that doesn't match `.gnu.linker.t*'.
What's the right way to handle this?
[from perusing the ld srcs, a few other archs seem to have the same
`feature,' though the only that I think has linux support is `cris']
Thanks,
-Miles
--
The secret to creativity is knowing how to hide your sources.
--Albert Einstein
next prev parent reply other threads:[~2003-01-07 5:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-27 10:25 Rusty Russell
2003-01-06 11:03 ` Miles Bader
2003-01-07 5:36 ` Miles Bader [this message]
2003-01-08 11:51 ` Rusty Russell
2003-01-08 20:56 ` Sam Ravnborg
2003-01-09 1:18 ` Miles Bader
2003-01-09 18:49 ` Sam Ravnborg
2003-01-09 19:16 ` Richard B. Johnson
-- strict thread matches above, loose matches on Subject: below --
2002-12-23 8:38 Rusty Russell
2002-12-23 9:21 ` David S. Miller
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=buoadid1pxl.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=miles@gnu.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
all inboxes | Powered by JetHome®