Bug 38678 - vinum fails to build due to @gprel relocation against dynamic symbol
Summary: vinum fails to build due to @gprel relocation against dynamic symbol
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: ia64 (show other bugs)
Version: 1.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ia64 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-29 05:50 UTC by Marcel Moolenaar
Modified: 2002-10-24 05:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Moolenaar 2002-05-29 05:50:01 UTC
===> 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
Comment 1 Marcel Moolenaar freebsd_committer freebsd_triage 2002-05-29 05:51:58 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ia64

Oops. Forgot to assign it to ia64 

Same applies to bktr.
Comment 2 Marcel Moolenaar freebsd_committer freebsd_triage 2002-10-24 04:58:12 UTC
State Changed
From-To: open->closed

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).