[Bug 1765] New: relocation type 10 (R_ALPHA_SREL32) not handled by elfloader.c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 2 13:59:52 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1765        
   
           Summary: relocation type 10 (R_ALPHA_SREL32) not handled by
                    elfloader.c
           Product: xorg
           Version: 6.7.0
          Platform: DEC
               URL: http://www.freebsd.org/cgi/query-pr.cgi?pr=73257
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Server/general
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: kstailey at yahoo.com


Platform:  DEC AlphaServer 1000A with Matrox Mystique card. 

OS: FreeBSD 5.3-BETA7

When I start the Xorg server I see numerous error messages about relocation type
10 not being handled.  This patch adds the missing support to 6.7.0.  I checked
6.8.1 and HEAD and did not see this code applied.

--- 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:        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list