From owner-freebsd-current Fri Mar 14 19:27:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F118537B401; Fri, 14 Mar 2003 19:27:42 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5376E43FAF; Fri, 14 Mar 2003 19:27:42 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 3AE132A7EA; Fri, 14 Mar 2003 19:27:42 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: cjc@freebsd.org Cc: current@freebsd.org Subject: Re: Create linker.hints at boot In-Reply-To: <20030315000920.GA69495@blossom.cjclark.org> Date: Fri, 14 Mar 2003 19:27:42 -0800 From: Peter Wemm Message-Id: <20030315032742.3AE132A7EA@canning.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "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