From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: axp-list@redhat.com
Subject: Re: 2.6.0-test9 partial success
Date: Mon, 27 Oct 2003 13:39:19 +0300 [thread overview]
Message-ID: <20031027133919.A25565@jurassic.park.msu.ru> (raw)
In-Reply-To: <00A27FA5.D7FADA49.110@shells.dls.net>; from achapkis@shells.dls.net on Mon, Oct 27, 2003 at 12:00:49AM -0500
On Mon, Oct 27, 2003 at 12:00:49AM -0500, Arkadiy Chapkis - Arc wrote:
> Oct 26 23:05:24 baltika kernel: module snd_page_alloc: Relocation overflow vs
> section 20
I've seen that too.
> My guess is that the first line is the culprit - because snd_page_alloc
> doesn't load, everything else is not loading either.
Exactly.
> My question is: should I file kernel bug report, or is it something I do
> wrong?
I think there is a problem with incorrect sign extension in calculation
of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
for me, though I'm not sure it's right way to fix that - I've sent this
to rth 3 or 4 times, but it wasn't applied...
Ivan.
--- 2.6/arch/alpha/kernel/module.c Wed May 28 01:05:20 2003
+++ linux/arch/alpha/kernel/module.c Mon Aug 11 23:23:02 2003
@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs,
*(u64 *)location = value;
break;
case R_ALPHA_GPRELHIGH:
- value = (value - gp + 0x8000) >> 16;
+ value = (long)(value - gp + 0x8000) >> 16;
if ((short) value != value)
goto reloc_overflow;
*(u16 *)location = value;
next prev parent reply other threads:[~2003-10-27 10:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-27 5:00 2.6.0-test9 partial success Arkadiy Chapkis - Arc
2003-10-27 7:36 ` Stefan Reinauer
2003-10-27 10:39 ` Ivan Kokshaysky [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-27 13:08 Arkadiy Chapkis - Arc
2003-10-27 19:58 Arkadiy Chapkis - Arc
2003-10-27 20:56 ` Jay Estabrook
2003-10-27 20:36 Arkadiy Chapkis - Arc
2003-10-27 22:17 ` Jay Estabrook
2003-10-28 5:09 Arkadiy Chapkis - Arc
2003-10-28 19:27 ` Jay Estabrook
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox