2008/2/6, Simon 'corecode' Schubert <[EMAIL PROTECTED]>: > 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
