From owner-freebsd-hackers Wed Mar 11 02:14:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA20225 for freebsd-hackers-outgoing; Wed, 11 Mar 1998 02:14:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA20175 for ; Wed, 11 Mar 1998 02:14:00 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id CAA22528; Wed, 11 Mar 1998 02:11:36 -0800 (PST) Message-Id: <199803111011.CAA22528@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Terry Lambert cc: eivind@yes.no (Eivind Eklund), hackers@FreeBSD.ORG, mike@smith.org.au Subject: Re: userconfig data -> linker set -> ELF segment In-reply-to: Your message of "Wed, 11 Mar 1998 03:22:29 GMT." <199803110322.UAA09090@usr04.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 11 Mar 1998 02:11:35 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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) Use the preprocessor to swap between linker-set encoding (a.out) and whatever magic is required to park things in different ELF sections. (Actually, I recall being told that this was fairly hard to achieve, so perhaps it's not such a good idea?) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message