From: Thomas Steudten <alpha@steudten.com>
To: linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>, ink@jurassic.park.msu.ru, rth@twiddle.net
Subject: Re: Relocation overflow vs section kernel-2.6.1 for alpha
Date: Sun, 11 Jan 2004 12:45:17 +0100 [thread overview]
Message-ID: <4001374D.5010402@steudten.com> (raw)
In-Reply-To: <20040110143409.0e591596.akpm@osdl.org>
Hello
I run in this problem too on my alpha sx164 and the patch fix this, so
i can load all the modules without problems.
Please add the patch to the kernel 2.6.x alpha mainline.
Regards
Tom
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2004-01-11 11:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-17 20:02 BUG: Kernel Panic: kernel-2.6.0-test9-bk21 for alpha in scsi context ll_rw_blk.c Thomas Steudten
2003-11-17 21:11 ` Andrew Morton
2003-11-17 21:31 ` Falk Hueffner
2003-11-17 21:34 ` Thomas Steudten
2003-11-17 21:48 ` Falk Hueffner
2003-11-17 23:19 ` Ivan Kokshaysky
2003-11-18 21:29 ` SOLVED: " Thomas Steudten
2004-01-10 16:59 ` BUG: Kernel Panic: kernel-2.6.1 " Thomas Steudten
2004-01-11 10:26 ` Oliver Pitzeier
[not found] ` <20040110143409.0e591596.akpm@osdl.org>
2004-01-11 11:45 ` Thomas Steudten [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=4001374D.5010402@steudten.com \
--to=alpha@steudten.com \
--cc=akpm@osdl.org \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
/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;
as well as URLs for NNTP newsgroup(s).