From nobody@www.freebsd.org  Tue May 28 21:47:23 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id C566637B406
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 May 2002 21:47:22 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4T4lMhG063687
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 May 2002 21:47:22 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4T4lM5d063686;
	Tue, 28 May 2002 21:47:22 -0700 (PDT)
Message-Id: <200205290447.g4T4lM5d063686@www.freebsd.org>
Date: Tue, 28 May 2002 21:47:22 -0700 (PDT)
From: Marcel <marcel@xcllnt.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vinum fails to build due to @gprel relocation against dynamic symbol
X-Send-Pr-Version: www-1.0

>Number:         38678
>Category:       ia64
>Synopsis:       vinum fails to build due to @gprel relocation against dynamic symbol
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ia64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 28 21:50:01 PDT 2002
>Closed-Date:    Wed Oct 23 21:00:35 PDT 2002
>Last-Modified:  Wed Oct 23 21:00:35 PDT 2002
>Originator:     Marcel
>Release:        
>Organization:
FreeBSD
>Environment:
>Description:
===> vinum
ld -Bshareable  -d -warn-common -o vinum.ko.debug vinum.kld
/usr/libexec/elf/ld: vinum.kld: @gprel relocation against dynamic symbol total_malloced
/usr/libexec/elf/ld: vinum.kld: @gprel relocation against dynamic symbol highwater
/usr/libexec/elf/ld: vinum.kld: @gprel relocation against dynamic symbol total_malloced
/usr/libexec/elf/ld: vinum.kld: @gprel relocation against dynamic symbol total_malloced
/usr/libexec/elf/ld: vinum.kld: @gprel relocation against dynamic symbol highwater
*** Error code 1

Current work-around: removed from build

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ia64 
Responsible-Changed-By: marcel 
Responsible-Changed-When: Tue May 28 21:51:58 PDT 2002 
Responsible-Changed-Why:  
Oops. Forgot to assign it to ia64 

Same applies to bktr.

http://www.freebsd.org/cgi/query-pr.cgi?pr=38678 
State-Changed-From-To: open->closed 
State-Changed-By: marcel 
State-Changed-When: Wed Oct 23 20:58:12 PDT 2002 
State-Changed-Why:  
The problem with the @gprel relocation was related to the fact 
that we compiled with short data and without -fpic. As a result, 
the compiler assumed it could create @gprel relocations to access 
data objects placed in the short data (.sdata or .sbss) sections. 
The fix is to disable short data for kernel builds (including 
modules). 


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