DragonFly bugs List (threaded) for 2008-02
DragonFly BSD
DragonFly bugs List (threaded) for 2008-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: can not load kernel module with dependencies


From: "Nicolas Thery" <nthery@xxxxxxxxx>
Date: Wed, 6 Feb 2008 23:48:58 +0100

2008/2/6, Simon 'corecode' Schubert <corecode@fs.ei.tum.de>:
> Nicolas Thery wrote:
> > "kldload foo" fails if foo depends on other modules that have not yet
> > been loaded.
> >
> > The kernel includes code to automatically loads dependencies but it
> > seems designed for an older ABI (cf load_dependancies()).
>
> there are two dependency systems in place:
>
> 1. the "old" one, using the DL_NEEDED entry in the ELF headers.
>
> 2. the "new" one, using linker sets.
>
> loader does (2), the kernel does (1).  required modules specified in the
> source set (2), Makefile sets (1).
>
> I personally think that (1) is the correct choice, but I'm open for
> discussion.  Maybe the nicest thing would be to use the sources and (2) to
> generate (1).

Thanks for this info.  That clarifies things a bit.  I focused on
implementing (2) in the kernel so far but I've got no strong opinion.
I'll try to grok (1).

Cheers,
Nicolas



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]