Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2002 17:54:27 +0100 (CET)
From:      Harti Brandt <brandt@fokus.gmd.de>
To:        Jake Burkholder <jake@locore.ca>
Cc:        sparc@FreeBSD.ORG
Subject:   Re: kldxref
Message-ID:  <20021228175150.F63772-100000@beagle.fokus.gmd.de>
In-Reply-To: <20021227142906.D43538@locore.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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