From owner-freebsd-amd64@FreeBSD.ORG Wed Feb 11 19:13:52 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67C9A16A4CE; Wed, 11 Feb 2004 19:13:52 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4983943D1F; Wed, 11 Feb 2004 19:13:52 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.10/8.12.10) with ESMTP id i1C3DqOE087766; Wed, 11 Feb 2004 19:13:52 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) i1C3DpuP099132; Wed, 11 Feb 2004 19:13:51 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.10/8.12.10/Submit) id i1C3Dp1h099131; Wed, 11 Feb 2004 19:13:51 -0800 (PST) (envelope-from marcel) Date: Wed, 11 Feb 2004 19:13:51 -0800 From: Marcel Moolenaar To: Peter Wemm Message-ID: <20040212031351.GA97767@dhcp01.pn.xcllnt.net> References: <4029EF67.9020703@he.iki.fi> <200402111239.50639.peter@wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200402111239.50639.peter@wemm.org> User-Agent: Mutt/1.4.1i cc: freebsd-amd64@freebsd.org cc: Petri Helenius Subject: Re: kld support X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 03:13:52 -0000 On Wed, Feb 11, 2004 at 12:39:50PM -0800, Peter Wemm wrote: > > So, I thought.. since I can do something about the in-kernel linker, > perhaps I can add PIC mode support? The problem with that though is > that gcc says "-fPIC mode not implemented in kernel mode" and errors > out. After looking at the gcc source code, it appears to me that the conflict is created by using -mcmodel as well as -fpic, right? If so, is there any harm in building the modules in the small model (for whatever that implies)? I think they'll still be 64-bit, right? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net