Date: Fri, 14 Mar 2003 19:27:42 -0800 From: Peter Wemm <peter@wemm.org> To: cjc@freebsd.org Cc: current@freebsd.org Subject: Re: Create linker.hints at boot Message-ID: <20030315032742.3AE132A7EA@canning.wemm.org> In-Reply-To: <20030315000920.GA69495@blossom.cjclark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
"Crist J. Clark" wrote: > > --C7zPtVaVf+AK4Oqc > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > > Perhaps it would be a good idea to build a linker.hints file with > kldxref(8) at boot time. At least, I can't think of any really good > reasons why _not_ to do it. Yes, we need to do this, but your patch needs a little more work. Specifically.. There is a linker.hints file in each directory in the module path, not just /boot/kernel. You need to look at the kern.module_path sysctl to find the search path. peter@daintree[7:26pm]~-101> sysctl -n kern.module_path /boot/kernel;/boot/kernel;/boot/modules;/modules This also needs to be robust in the case where /boot might be another file system or readonly or NFSROOT or not even mounted, or something. But this has needed attention for quite a while. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 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?20030315032742.3AE132A7EA>