From kstailey@comcast.net  Thu Oct 28 23:05:17 2004
Return-Path: <kstailey@comcast.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 389E716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Oct 2004 23:05:17 +0000 (GMT)
Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EA34443D45
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Oct 2004 23:05:16 +0000 (GMT)
	(envelope-from kstailey@comcast.net)
Received: from loki.trickster.gods (pcp07721099pcs.nrockv01.md.comcast.net[69.138.237.184])
          by comcast.net (rwcrmhc12) with ESMTP
          id <2004102823051501400sau2me>; Thu, 28 Oct 2004 23:05:16 +0000
Received: from loki.trickster.gods (localhost [127.0.0.1])
	by loki.trickster.gods (8.13.1/8.13.1) with ESMTP id i9SN5CCO000748;
	Thu, 28 Oct 2004 19:05:12 -0400 (EDT)
	(envelope-from kstailey@loki.trickster.gods)
Received: (from kstailey@localhost)
	by loki.trickster.gods (8.13.1/8.12.9/Submit) id i9SN5Cb5000747;
	Thu, 28 Oct 2004 19:05:12 -0400 (EDT)
Message-Id: <200410282305.i9SN5Cb5000747@loki.trickster.gods>
Date: Thu, 28 Oct 2004 19:05:12 -0400 (EDT)
From: Ken Stailey <kstailey@yahoo.com>
Reply-To: Ken Stailey <kstailey@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ports@loki.trickster.gods
Subject: xorg relocation type 10 missing from elfloader.c
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         73257
>Category:       ports
>Synopsis:       xorg relocation type 10 missing from elfloader.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 28 23:10:27 GMT 2004
>Closed-Date:    Sun Jan 02 00:34:11 GMT 2005
>Last-Modified:  Sun Jan 02 00:34:11 GMT 2005
>Originator:     Ken Stailey
>Release:        FreeBSD 5.3-BETA7 alpha
>Organization:
self
>Environment:
System: FreeBSD loki.trickster.gods 5.3-BETA7 FreeBSD 5.3-BETA7 #3: Sun Oct 20 08:45:06 EDT 2024 kstailey@loki.trickster.gods:/usr/obj/usr/src/sys/LOKI alpha


	
>Description:

When I try to start the Xorg server on my DEC Alpha Server 1000A I get
numerous messages about reloction type 10 not being handled.

	
>How-To-Repeat:

Run xinit on a DEC Alpha Server 1000A.

>Fix:


--- programs/Xserver/hw/xfree86/loader/elfloader.c.orig	Fri Apr  2 12:25:21 2004
+++ programs/Xserver/hw/xfree86/loader/elfloader.c	Wed Oct 27 22:48:02 2004
@@ -1608,6 +1608,20 @@
 	    break;
 	}
 
+ 	case R_ALPHA_SREL32:
+ 	    {
+ 		dest32 = (unsigned int *)(secp + rel->r_offset);
+ 		symval += rel->r_addend;
+ 		symval -= (unsigned long) dest32;
+ 		if ((long)symval >= 0x80000000
+ 		    || (long)symval < -(long)0x80000000)
+ 		    FatalError("R_ALPHA_SREL32 overflow for %s: %lx\n",
+ 			       ElfGetSymbolName(elffile, ELF_R_SYM(rel->r_info)),
+ 			       symval);
+ 		*dest32 = symval;
+ 		break;
+ 	    }
+ 
 #endif /* alpha */
 #if defined(__mc68000__)
     case R_68K_32:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Oct 30 05:41:55 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73257 
Responsible-Changed-From-To: x11->freebsd-x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Nov 17 06:30:21 GMT 2004 
Responsible-Changed-Why:  
While PRs for ports maintained by x11@FreeBSD.org have for some time been 
assigned to 'x11', this creates duplicate reminder email postings to the 
mailing lists.  The canonical form should now be 'freebsd-x11'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73257 
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Sun Jan 2 00:33:55 GMT 2005 
State-Changed-Why:  
Patch committed to CVS, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73257 
>Unformatted:
