Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: michal at ellpspace.math.ualberta.ca (Michal Jaegermann)
Subject: Odp: Re: AlphaCore 2.0 vs. AlphaServer 4100
Date: Fri, 24 Mar 2006 16:19:39 -0700	[thread overview]
Message-ID: <20060324231939.GB26992@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <442478E4.3060708@solvo.ru>

On Sat, Mar 25, 2006 at 01:55:32AM +0300, Sergey Tikhonov wrote:
> pawel.oleksiak at rieberson.no wrote:
> 
> >Witam / Hello
> >
> >Will you prepare ISO of AC2.0 with this update ?
> > 
> >
> Yes, as soon as I figure out what to do with famost "Relocation" problem 
> with modules on Alpha.

By any chance this will not be the following (I got that a long
time ago with an obvious white-space damage so if this cast is
really missing then it has to be added with an editor)?

---------------------------

On Mon, Jan 05, 2004 at 02:21:37AM +0100, M??ns Rullg??rd wrote:
> I compiled Linux 2.6.0 for Alpha, and it mostly works, except the
> somewhat large modules. They fail to load with the message
> "Relocation overflow vs section 17", or some other section number.

This failure happens with GPRELHIGH relocation, which is *signed*
short, but relocation overflow check in module.c doesn't take into
account the sign extension.
Appended patch should help.

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;

---------------------------

I would think that this was applied a long time ago but maybe
not?  I cannot check at this moment.

Another old change which could be relevant was also for kernel/module.c
but if you see there the following comment:

     /* Skip relocations on non-allocated (ie. debug) sections */

then most likely it means that it is there.

    Michal



  reply	other threads:[~2006-03-24 23:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-22 10:10 AlphaCore 2.0 vs. AlphaServer 4100 pawel.oleksiak
2006-03-22 11:24 ` tsv
2006-03-23 10:47   ` Odp: " pawel.oleksiak
2006-03-23 17:06     ` tsv
2006-03-23 14:29   ` Jay.Estabrook
2006-03-23 21:07     ` tsv
2006-03-24  9:58       ` Odp: " pawel.oleksiak
2006-03-24 22:55         ` tsv
2006-03-24 23:19           ` michal [this message]
2006-03-24 23:27             ` Jay.Estabrook
2006-03-24 23:46               ` michal
2006-03-24 23:36             ` tsv
2006-03-26 19:46               ` tsv
2006-03-28 10:31           ` Odp: " pawel.oleksiak
2006-03-28 10:49             ` tsv
2006-03-24 22:26 ` bob58523
2006-03-24 23:31   ` Jay.Estabrook
2006-03-24 22:28 ` bob58523
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