Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 1998 02:11:35 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        eivind@yes.no (Eivind Eklund), hackers@FreeBSD.ORG, mike@smith.org.au
Subject:   Re: userconfig data -> linker set -> ELF segment 
Message-ID:  <199803111011.CAA22528@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 11 Mar 1998 03:22:29 GMT." <199803110322.UAA09090@usr04.primenet.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803111011.CAA22528>