From owner-freebsd-sparc Sat Dec 28 8:54:43 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC5D737B401 for ; Sat, 28 Dec 2002 08:54:41 -0800 (PST) Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id E41B643E4A for ; Sat, 28 Dec 2002 08:54:40 -0800 (PST) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id gBSGsRJ27638; Sat, 28 Dec 2002 17:54:28 +0100 (MET) Date: Sat, 28 Dec 2002 17:54:27 +0100 (CET) From: Harti Brandt To: Jake Burkholder Cc: sparc@FreeBSD.ORG Subject: Re: kldxref In-Reply-To: <20021227142906.D43538@locore.ca> Message-ID: <20021228175150.F63772-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 27 Dec 2002, Jake Burkholder wrote: JB>Apparently, On Fri, Dec 27, 2002 at 01:44:04PM +0100, JB> Harti Brandt said words to the effect of; JB> JB>> JB>> Hi, JB>> JB>> is there any chance of fixing the kldxref problem? It seems to prevent JB>> loading of modules via dependencies which is needed to resolve JB>> inter-module symbol dependencies. JB>> JB> JB>What's breaking kldxref is that it reads in kld object files and tries JB>to read initialized variables from the data section before the files JB>have been relocated. This only happens to work on other platforms, its JB>not part of the elf spec and not guaranteed to work at all. The way to JB>fix it is that everywhere that reads in a kld and accesses the module JB>metadata data structures has to process the relocations first, so that JB>the variables get their values poked in. This is not especially hard JB>to fix, its just not high on my list of fun things to do. If you give me a hint what to do and where to look, I try to fix it, because at the moment kldload does not work for the more interesting cases (ethernet drivers that need mii and netgraph) and I need this because I'm trying to get NgATM running on sparc. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message