Date: Wed, 6 Apr 2005 16:32:34 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org, Mrzh <morzhus@mail.ru> Subject: Re: Using kld functions in other kld's? Message-ID: <200504061632.43062.doconnor@gsoft.com.au> In-Reply-To: <E1DJ4UW-0003zG-00.morzhus-mail-ru@f13.mail.ru> References: <E1DJ4UW-0003zG-00.morzhus-mail-ru@f13.mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1478740.DlmKVc8EFQ Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 6 Apr 2005 16:28, Mrzh wrote: > I'm trying to access one kld's functions from another kld in FreeBSD 5.3. > Even though I have non-static functions in my first loaded kld, subsequent > kldload of another kld that refers to those symbols gives me "link_elf: > symbol blahblahblah undefined". I was able to do this kind of thing in > FreeBSD 4.x before. > > Is what I'm trying to do possible in FreeBSD 5.3? What could be source of > the problem? Thanks very much for any reply! A KLD's symbols aren't exported by default (any more?) so you can only acce= ss=20 the public interfaces. See EXPORT_SYMS in /usr/src/sys/conf/kmod.mk =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1478740.DlmKVc8EFQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCU4mS5ZPcIHs/zowRAow+AJ9u2c1NDPztz6U43HWHYzvXt6TVhQCeMYw2 a2Esm9sf9zTct0lpFRKH4p0= =yLGA -----END PGP SIGNATURE----- --nextPart1478740.DlmKVc8EFQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504061632.43062.doconnor>