From owner-freebsd-hackers Wed Mar 11 06:48:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA18693 for freebsd-hackers-outgoing; Wed, 11 Mar 1998 06:48:06 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA18666 for ; Wed, 11 Mar 1998 06:48:01 -0800 (PST) (envelope-from gibbs@narnia.plutotech.com) Received: (from gibbs@localhost) by narnia.plutotech.com (8.8.8/8.7.3) id HAA10346; Wed, 11 Mar 1998 07:44:27 -0700 (MST) Date: Wed, 11 Mar 1998 07:44:27 -0700 (MST) From: "Justin T. Gibbs" Message-Id: <199803111444.HAA10346@narnia.plutotech.com> To: Mike Smith cc: hackers@FreeBSD.ORG Subject: Re: userconfig data -> linker set -> ELF segment Newsgroups: pluto.freebsd.hackers In-Reply-To: <199803111011.CAA22528@dingo.cdrom.com> User-Agent: tin/pre-1.4-971204 (UNIX) (FreeBSD/3.0-CURRENT (i386)) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199803111011.CAA22528@dingo.cdrom.com> you wrote: >> > I was basically planning to look at distributing the userconfig device >> > list as a linker set, to allow externally developed drivers to be >> > added without having to edit a static list. I know how to do this >> > now, but how easy is it to put it in a non-loaded segment later? >> >> This is hard. >> >> The problem is that you need to be able to agregate linker sets >> at run time, not at link time. > > You're making things too difficult. 8) Exactly. Don't use a linker set at all. Convert all drivers to LKMs, load they "probe" section of all LKMs, have an entry point in the probe section register the driver with userconfig. Linker sets are a pain. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message