From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 28 23:20:25 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D12416A4CE for ; Thu, 28 Oct 2004 23:20:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEA7F43D4C for ; Thu, 28 Oct 2004 23:20:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9SNKOex029315 for ; Thu, 28 Oct 2004 23:20:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9SNKOZU029314; Thu, 28 Oct 2004 23:20:24 GMT (envelope-from gnats) Resent-Date: Thu, 28 Oct 2004 23:20:24 GMT Resent-Message-Id: <200410282320.i9SNKOZU029314@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ken Stailey Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2DA616A4CE for ; Thu, 28 Oct 2004 23:12:31 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E55943D31 for ; Thu, 28 Oct 2004 23:12:31 +0000 (GMT) (envelope-from kstailey@comcast.net) Received: from loki.trickster.gods (pcp07721099pcs.nrockv01.md.comcast.net[69.138.237.184]) by comcast.net (rwcrmhc11) with ESMTP id <2004102823122601300c2dare>; Thu, 28 Oct 2004 23:12:26 +0000 Received: from loki.trickster.gods (localhost [127.0.0.1]) by loki.trickster.gods (8.13.1/8.13.1) with ESMTP id i9SNCODn000864; Thu, 28 Oct 2004 19:12:24 -0400 (EDT) (envelope-from kstailey@loki.trickster.gods) Received: (from kstailey@localhost) by loki.trickster.gods (8.13.1/8.12.9/Submit) id i9SNCOq4000863; Thu, 28 Oct 2004 19:12:24 -0400 (EDT) Message-Id: <200410282312.i9SNCOq4000863@loki.trickster.gods> Date: Thu, 28 Oct 2004 19:12:24 -0400 (EDT) From: Ken Stailey To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/73258: xorg relocation type 10 missing from elfloader.c X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ken Stailey List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 23:20:25 -0000 >Number: 73258 >Category: ports >Synopsis: xorg relocation type 10 missing from elfloader.c >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 28 23:20:24 GMT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: