Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2002 09:31:59 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        John Polstra <jdp@polstra.com>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: Module loading broken on -stable/alpha
Message-ID:  <15753.53711.799896.814973@grasshopper.cs.duke.edu>
In-Reply-To: <XFMail.20020918171825.jdp@polstra.com>
References:  <XFMail.20020918171825.jdp@polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Ah, the new binutils..  The following patch works (seeking MFC
approval now):

Drew


Index: elf_machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/alpha/alpha/elf_machdep.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- elf_machdep.c	28 Aug 1999 00:38:25 -0000	1.7
+++ elf_machdep.c	21 Feb 2002 23:34:09 -0000	1.8
@@ -101,7 +101,7 @@
 			break;
 
 		case R_ALPHA_RELATIVE:
-			addr = relocbase + addend + *where;
+			addr = relocbase + addend;
 			if (*where != addr)
 				*where = addr;
 			break;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15753.53711.799896.814973>