Subject: Re: What's a "real" elf loader like ?
To: Eric Haszlakiewicz <>
From: Christos Zoulas <>
List: tech-kern
Date: 06/16/2006 17:17:17
On Jun 16,  3:50pm, (Eric Haszlakiewicz) wrote:
-- Subject: Re: What's a "real" elf loader like ?

| 	I vaguely remember thinking that the solution to a lot of the symbol
| collisions, at least when you're talking about common shared function that
| two LKMs might need, is to make the LKM more fine grained.  So, if you've
| got the linux emul lkm, and a freebsd emul lkm, and they both use emul_find=
| (),
| rather than having emul_find() included in linux_lkm.o and freebsd_lkm.o,=
| =20
| you have a emul_lkm.o that gets loaded first.  Of course, doing so only
| really becomes feasable when you can do something as simple as a
| 	echo "options COMPAT_LINUX" | config -b . - && make
| to build any piece of the kernel.

If you make them more fine-grained, then you can use the elf library dependency
mechanism to load the modules...