Date: Wed, 20 Feb 2002 14:08:41 +0900 From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> To: Mike Smith <msmith@hub.freebsd.org> Cc: current@FreeBSD.ORG Subject: Re: HEADS UP: module build process changed Message-ID: <ybs3czwyc2u.wl@ett.sat.t.u-tokyo.ac.jp> In-Reply-To: <20020110173500.A10785@hub.freebsd.org> References: <20020110173500.A10785@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At Thu, 10 Jan 2002 17:35:00 -0800,
Mike Smith wrote:
> In order to deal with this problem, I have changed the module build
> process so that symbols global to the module are converted to local
> symbols when the module is linked into the .kld/,ko file. In order
> to allow modules that intentionally export symbols to continue to do
> so, a new module makefile variable 'EXPORT_SYMS' has been implemented.
Hi Mike,
I don' think EXPORT_SYMS works right.
EXPORT_SYMS= fw_asybusy \
fw_asyreq \
fw_bindadd \
getcsrdata \
fw_xfer_alloc \
fw_xfer_free \
By this configuration, /sys/conf/kmod.mk generates space separated
list to export_syms like this:
fw_asybusy fw_asyreq fw_bindadd getcsrdata fw_xfer_alloc fw_xfer_free
But /sys/conf/kmod_syms.awk expects 'line break' separated list.
And we cannot export any symbols.
For example,
Remove ppbus/plip/lpt/ppi/ppc from you kernel config.
Can you load ppbus and it's childen by kldload?
Even if this problem is fixed, I suppose another problem there.
Even if I set EXPORT_SYMS=YES, I cannot resolv module symbols.
e.g.
kldload module1
kldload module2
module2 cannnot resolv symbols in module1.
-stable doesn't have this problem.
/\ Hidetoshi Shimokawa
\/ simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ybs3czwyc2u.wl>
