Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2004 16:35:00 +1000
From:      Tim Robbins <tjr@freebsd.org>
To:        4Front Technologies <dev@opensound.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: KLD support in FreeBSD/AMD64
Message-ID:  <20040716063500.GA23719@cat.robbins.dropbear.id.au>
In-Reply-To: <40F70C3A.5020300@opensound.com>
References:  <40F70C3A.5020300@opensound.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 15, 2004 at 03:59:06PM -0700, 4Front Technologies wrote:
> Hi,
> 
> We are trying to get Open Sound System modules compiled under FreeBSD/AMD64.
> I looked at the /usr/share/examples/kld/cdev example and it fails to link:
> 
> ld: cdev.kld: relocation R_X86_64_32S can not be used when making a shared 
> object; recompile with -fPIC
> cdev.kld: could not read symbols: Bad value
> 
> If I add -fPIC to the compile files (I have to remove -mcmodel=kernel and 
> -no-redzone) then the module links but running kldload cdev.ko causes:
> 
> kldload: unexpected relocation type 7
> link_elf: symbol copyinstr undefined
> 
> We are seeing the same problems in our OSS modules. So is there any work 
> going on to add KLD support for FreeBSD/AMD64?

FreeBSD -CURRENT supports modules on amd64, but 5.2.1-R and -current
snapshots more than a few months old don't.


Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040716063500.GA23719>