From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Con Kolivas <kernel@kolivas.org>, kraxel@suse.de
Cc: anemo@mba.ocn.ne.jp, linux-kernel@vger.kernel.org, sam@ravnborg.org
Subject: Re: gcc 4.1.1 issues with 2.6.17-rc5
Date: Sun, 28 May 2006 22:55:06 -0700 [thread overview]
Message-ID: <20060528225506.2ad0979b.rdunlap@xenotime.net> (raw)
In-Reply-To: <200605291452.26423.kernel@kolivas.org>
On Mon, 29 May 2006 14:52:25 +1000 Con Kolivas wrote:
> On Monday 29 May 2006 02:32, Atsushi Nemoto wrote:
> > On Sat, 27 May 2006 22:39:45 -0700, "Randy.Dunlap" <rdunlap@xenotime.net>
> wrote:
> > > > and a missed one:
> > > > WARNING: drivers/usb/storage/usb-storage.o - Section mismatch:
> > > > reference to .exit.text: from .smp_locks after '' (at offset 0x40)
> > >
> > > Yep, Jesper posted that one.
> > > I also see it in ieee1394.o.
> > >
> > > So where does the .smp_locks section come from?
> > > Is this just a section checker bug/issue?
> >
> > The .smp_locks section comes from LOCK_PREFIX on x86. I think the
> > warnings was not shown previously just because the modpost did not
> > check SHT_REL sections.
> >
> > Maybe we should fix the modpost to ignore it, but I'm not sure. Is it
> > really safe to ignore? I'm not a x86 expert ...
>
> A "scary but harmless" comment from someone in the know would be nice.
Yes, I understand your remark.
I have looked at the twisty maze of alternatives code, but Gerd
(added to To:) is really who needs to reply IMO.
Based on my source code reading, it is just scary but harmless.
alternatives_smp_unlock() and alternatives_smp_lock() are passed
beginning and end addresses of text sections and they ignore
(init/exit) code addresses that are outside of the text code
range.
One comment says:
/* .text segment, needed to avoid patching init code ;) */
and the code does appear to implement that.
I would make one small change to the code, however.
In alternatives_smp_lock() and alternatives_smp_unlock(), change
if (*ptr > text_end)
continue;
to
if (*ptr >= text_end)
continue;
because text_end is text_start + text_size, so text_end could be
the beginning of the next section. However, in practice this
may not matter.
---
~Randy
prev parent reply other threads:[~2006-05-29 5:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-28 2:55 Con Kolivas
2006-05-28 5:21 ` Con Kolivas
2006-05-28 5:39 ` Randy.Dunlap
2006-05-28 9:15 ` Bongani Hlope
2006-05-28 16:32 ` Atsushi Nemoto
2006-05-29 4:52 ` Con Kolivas
2006-05-29 5:55 ` Randy.Dunlap [this message]
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=20060528225506.2ad0979b.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=anemo@mba.ocn.ne.jp \
--cc=kernel@kolivas.org \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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®